in reply to Re: Re: Substitution Problem
in thread Substitution Problem
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?"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Substitution Problem
by Wassercrats (Initiate) on Sep 13, 2002 at 02:42 UTC | |
by Django (Pilgrim) on Sep 13, 2002 at 07:25 UTC | |
by Wassercrats (Initiate) on Sep 13, 2002 at 08:07 UTC |