I would rather parse each line into an array (e.g. using a regex), then parse each entry and delete it from the array if archaic. Finally, I would serialize the array back to string.
In reply to Re: Removing with regexps
by choroba
in thread Removing with regexps
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |