Finding VBA Comments using RegEx

前端 未结 3 1469
予麋鹿
予麋鹿 2021-01-23 22:49

I am trying to find all VBA comments using regular expressions. I have something that mostly works, but there are a few exceptions that I cannot figure out.

Expression I

3条回答
  •  情深已故
    2021-01-23 23:35

    This should work:

    ("[^"]+"\s)?'.+
    

    Tested here: https://regex101.com/r/dd60QS/1

提交回复
热议问题