Regular does not match qualified characters

Regular does not match the restriction characters before and after, only match the ones to be matched

([^ ]+)(?=[\s]*测试)

This is the matched result and only contains

([^ ]+)

Content, the same goes forward

Guess you like

Origin blog.csdn.net/JOB66/article/details/107507914