I need a php regular expression that replaces one tag with another

后端 未结 4 1214
广开言路
广开言路 2021-01-24 08:23

Here is what I need to be able to do:

I need to match the following tag:

text sample
         


        
4条回答
  •  执念已碎
    2021-01-24 08:46

    DO NOT USE REGULAR EXPRESSIONS TO PARSE HTML

    do not use regular expressions to parse HTML

    do not use regular expressions to parse HTML

    do not use regular expressions to parse HTML

    do not use regular expressions to parse HTML

    do not use regular expressions to parse HTML

    do you need more clarification?

    Use DomDocument::LoadFromHTML ;)

提交回复
热议问题