c#中Regex的用法

2025-05-01 06:52:02
推荐回答(1个)
回答1:

你直接用string.indexof方法不好么,干吗要用正则(虽然不是不行),用正则的话基本上就是
if(Regex.IsMatch(textBox1.Text,@"\*"))