How do you find an overlapping match with a variable-length prefix using regex?

后端 未结 0 969
南笙
南笙 2021-02-07 03:38

I am trying to match tags like TODO inside comments in some code files using a regular expression. Consider for example the following file:

foo bar #         


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