[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.

你可能感兴趣的:([C#]Regular Expression)