MySQL regex replace?

前端 未结 3 645
北海茫月
北海茫月 2021-01-19 23:47

I\'ve got a table with blob text fields. This blob has a lot of html in it. One of the pieces of html is an h2. I would like to find all instances of a word in the h2 tag, a

3条回答
  •  感动是毒
    2021-01-20 00:18

    Html is not a regular language therefore trying to parse it with regex is not the best option. In my opinion i would want to leverage a html parser to do this job. Here is a sample parser.

    Enjoy!

提交回复
热议问题