例1:
\{和\}分别代表{和}
[^
\{\}
]匹配 除了 {和}之外的一个字符
* 尽可能多得匹配它前面的那种字符,至少匹配0个
+尽可能多得匹配它前面的那种字符,至少匹配1个
这样合起来:
\{[^\{\}]*\}匹配最里层的花括号
例2:
\( 和 \) 分别代表 ( 和 )
. 匹配任意一个字符
*?
Zero or more of the previous group,but minimally: the shortest matching string,rather than the longest string as with the "greedy"*operator. Thus,m.*?oapplied to the textmargin-bottom: 0;will matchmargin-bo,whereasm.*omargin-botto.
则 \(typedef_.*?; 匹配(一次匹配一个)
(typedef_XXXFunctionPtr)GetProcAddress(DllHandle,"XXXFunction");
(typedef_YYYFunctionPtr)GetProcAddress(DllHandle,"YYYFunction");
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。