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>
In reply to Re: Regular expression question
by FreeBeerReekingMonk
in thread Regular expression question
by prenaud
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |