[C#]Regular Expression

1. Regex

Regex.IsMatch

Regex.Replace

Easy to understand and use.

2. RegexOptions

Use it to specify the options for regular expression matching. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

3. FlagsAttribute

It can make a enum become a bit field instead of just a constant list. Indicates that an enumeration can be treated as a bit field; that is, a set of flags.

原文地址:https://www.cnblogs.com/taoxu0903/p/1788704.html