wxParse icon indicating copy to clipboard operation
wxParse copied to clipboard

这个正则有点问题

Open shuobeige11 opened this issue 6 years ago • 1 comments

/([a-zA-Z_:][-a-zA-Z0-9_:.])(?:\s=\s*(?:(?:"((?:\.|[^"]))")|(?:'((?:\.|[^']))')|([^>\s]+)))?/g parse里这段正则需要改下 /([a-zA-Z_:][-a-zA-Z0-9_:.])(?:\s=\s*((?:(?:"((?:\.|[^"]))")|(?:'((?:\.|[^']))')|([^>\s]+))))?/g

image

image

shuobeige11 avatar Jan 28 '19 08:01 shuobeige11

1553157018(1) 其实是没错的,正则里面双引号放在前面,所以第三个参数是值。如果用单引号,应该是第四个才是值。

ianzhi avatar Mar 21 '19 08:03 ianzhi