ngx.re.match使用示例

s='...12ab345cde...'
r, e = ngx.re.match(s,'(\\d+)([a-z]+)(?<num>\\d+)(?<word>[a-z]+)')

结果

{\table: 0x40c39fa0
"num" : "345",
"word": "cde",
0 : "12ab345cde",
1 : "12",
2 : "ab",
3 : "345",
4 : "cde",
}

posted @ 2017-04-12 09:23  LisPythoniC  阅读(3402)  评论(0编辑  收藏  举报