Regex类(续)-C#入门经典ppt

时间:2021-04-26 09:36:14
【文件属性】:
文件名称:Regex类(续)-C#入门经典ppt
文件大小:4.81MB
文件格式:PPT
更新时间:2021-04-26 09:36:14
C#,入门经典 Regex类(续) public static bool IsMatch(string str, string pattern); 表示使用pattern参数中指定的正则表达式是否在str中找到匹配项。 public static bool IsMatch(string str, string pattern, RegexOptions options); 表示使用pattern参数中指定的正则表达式和options枚举提供的匹配选项在input中是否找到匹配项。其中options是RegexOption枚举值的按位“或”组合。

网友评论