Don't confuse matching with capturing:
Note also, that you can't use character classes like "." or "\s" within the right side of the substitute operator.s/$a/$b/ # $a matches and is replaced by $b s/($a)/$1$b/ # $a matches and is captured in $1 # $b is appended
~Django
"Why don't we ever challenge the spherical earth theory?"
In reply to Re: Re: Re: Substitution Problem
by Django
in thread Substitution Problem
by Wassercrats
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |