请问lua中如何正则匹配固定长度的特征串?

88 views
Skip to first unread message

牧童

unread,
May 20, 2016, 12:03:52 PM5/20/16
to openresty
比如我想匹配一个32字节的md5字符串,string.match(md5, "[%x]{32}")这样是匹配不到的,lua貌似不支持{}语法。。。

请大神们支招~

XI WANG

unread,
May 20, 2016, 7:11:39 PM5/20/16
to openresty
ngx.re.find
ngx.re.match
Reply all
Reply to author
Forward
0 new messages