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

posted @ 2010-07-30 14:12  能巴  阅读(204)  评论(0编辑  收藏  举报