正则表达式实例 -- 匹配Windows消息宏

2020-12-13 06:23

阅读:270

标签:des   style   blog   http   color   ar   div   log   

Windows消息宏,定义在winuser.h里,消息编号从 0x0000 到 0x0400,下面给出一部分:

1 #define WM_NULL                         0x0000
2 #define WM_CREATE                       0x0001
3 #define WM_DESTROY                      0x0002
4 #define WM_MOVE                         0x0003
5 #define WM_SIZE                         0x0005

正则表达式:

1 #define (.+?) (0x[0-9a-fA-F]{1,4})

在线测试工具:

http://tool.chinaz.com/regex/

正则表达式实例 -- 匹配Windows消息宏,搜素材,soscw.com

正则表达式实例 -- 匹配Windows消息宏

标签:des   style   blog   http   color   ar   div   log   

原文地址:http://www.cnblogs.com/luzhiyuan/p/3903382.html


评论


亲,登录后才可以留言!