Use regex to find specific string not in html tag

后端 未结 8 1093
温柔的废话
温柔的废话 2021-02-05 08:53

I\'m having some difficulty with a specific Regex I\'m trying to use. I\'m searching for every occurrence of a string (for my purposes, I\'ll say it\'s \"mystring\") i

8条回答
  •  醉梦人生
    2021-02-05 09:09

    This should do it:

    (?]*)_mystring_
    

    It uses a negative look behind to check that the matched string does not have a < before it without a corresponding >

提交回复
热议问题