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


源自 MicroTeam
欢迎转载,务必保留署名和链接。
原文地址:https://www.cnblogs.com/MicroTeam/p/1990582.html