Regex to find word on page including inside tags

后端 未结 4 699
-上瘾入骨i
-上瘾入骨i 2021-01-28 15:13

Thanks to Chetan Sastry I have this Regex code to parse my page for a list of words and add the TM to them.

var wordList = [\"jQuery UI\", \"jQuery\", \"is\"];
v         


        
4条回答
  •  逝去的感伤
    2021-01-28 15:55

    what about adding "jQuery" and "jQuery UI" to your list of search terms? (You'll need to escape the special characters for RegEx to work properly but it might be an easier (if less elegant) solution.)

提交回复
热议问题