And just to amend to the post by Roger that you might also want to remove quoted strings with newlines in them, lest you wish to end up with very strange results, with the following regex:
s/"(?:\\"|.)*?"//gs;
In reply to Re: Re: Re: I just cannot figure out the greedy regex
by !1
in thread I just cannot figure out the greedy regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |