更新时间:2023-08-27 16:01:58
将这些作品存储在字典或列表中。
解析在文本框中键入的字符串,并用平淡无奇的方式替换这些字符。
简单的Linq查询甚至是string.Replace
[ ^ ]可行。
对于更复杂的模式匹配,您可以查看RegEx
[ ^ ]替换。
Store these works in a dictionary or list.
Parse the string typed in the text box and replace any of these characters with a bland.
A simple Linq query or even astring.Replace
[^] would work.
For more complex pattern matching you can look at aRegEx
[^] replace.