第一种用法:
--------------------------------------------------
string  p=@"[a-z0-9]+";
Regex.Replace(schString , p , replaceString);   



第二种用法:
--------------------------------------------------
Regex  reg = new Regex(@"[a-z0-9]+");
reg.Replace(schString, replaceString) 

以上就是【C#正则用法两例】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论