Tips of C# Regex Expression

"." don’t match “\n” in Multiline mode

“(?<group_name>regex_expression)” defines the group name. We can refer the group with match.Groups["group_name"].Value;

“(?:regex_expression)” ignores the group

Regex.Escape(string) is very useful and readable!

 

continue…

 

MicroTeam Hui

posted on 2011-03-21 18:06  MicroTeam  阅读(428)  评论(0编辑  收藏  举报