var formatString = "{a}xxxxxxx{c}xxxqhcvlepxxx{e}xxx";Dictionary<string, string> dic = new Dictionary<string, string>{ { "a","xxxx" }, { "b","xxx" }, { "c","x" }, { "e","xxxxxx" }, { "d","xxxxxxx" },};如上: 如何使用dic中的值去替換formatString {\w+} 字符串呢有木有大神知道, 請指點感激不盡
- 2 回答
- 0 關注
- 770 瀏覽
添加回答
舉報
0/150
提交
取消