一次性替换多个符合项

string str = "源字符串";
str = Regex.Replace(str, "(hello|hi|nihao|welcome|chilema)", "Comment vas-tu ", RegexOptions.IgnoreCase);
posted @ 2009-04-02 11:58  supers  阅读(131)  评论(0)    收藏  举报