in reply to Pattern Matching: Case-Conservation
This works as long as you are using ASCII and only matching alpha characters$s = 'foo FOO Foo fOO'; $s =~ s/(foo)/$1 ^ lc($1) ^ "bar"/gie; print $s,"\n"; # outputs "bar BAR Bar bAR"
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pattern Matching: Case-Conservation
by crazysniffable (Acolyte) on Jun 02, 2004 at 22:47 UTC |