That also removes cat.msg, vain.msg, etc. Closer to the original intent (as best as I can tell) would be:
- tye$line =~ s[v?(a?(c?(a?(t?(i?(o?(n?(\.?(m?(s?g))))))))))][];
In reply to Re^2: more efficient regular expression please (parens)
by tye
in thread more efficient regular expression please
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |