in reply to Regular expression question
Data file:
$ cat svg.html <html> this <svg>Lorem Ipsum<foo>bar</foo> asd</svg>IS SPARTA <svg some=property>:{P</svg> </html>
$ perl -0 -pi.bak -e 's{<svg[^>]*>.*?</svg>}{}sgi' svg.html ; cat svg. +html <html> this IS SPARTA </html>
|
---|