Negative look ahead matching when it should not match

后端 未结 0 1760
误落风尘
误落风尘 2021-01-22 15:05

I made this regex to match var being read

\\bvar\\b([^;^{]*?([\\s]*?([<]|[>]|[!]|[=]{2})))([^;]*?)(?!=)

These are my test strings:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题