匹配中英文

匹配中文:[\u4e00-\u9fa5]*。

示例:MatchCollection var=  Regex.Matches("中国isguyoj国家", @"[\u4e00-\u9fa5]+");

var其中的值为"中国","国家".

匹配英文[a-zA-Z]*

示例:MatchCollection var= Regex.Matches("中国isguyoj国家", @"[a-zA-Z]*");

var其中的值为"isguyoj".

原文地址:https://www.cnblogs.com/bicabo/p/2382150.html