How to match all
and allHow to write this regular expression?
How to match all
and allHow to write this regular expression?
<code>/<p(\s[^>]*)?>.*?</p>|<img\s[^>]+>/gis</code>
/<p>[^<]*?</p>|<img [^]*?/>/gi
If there is nesting, it cannot be processed.
/<p>.*</p>|<img.+>/gi