Your regex in the first part of the substitution isn't matching $line exactly. Because of this the substitution isn't happening (and therefore the unmodified version prints). Namely, you don't have a semi-colon in $line. If you take out the semi-colon and the back-slash from the substitution (or add a semi-colon to $line) it should work properly.
Hope This Helps,
jynx
In reply to Re: regex matching with $1
by jynx
in thread regex matching with $1
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |