in reply to Case-preserving substitutions
Consult perlman:perlre for more details.s/\b($old)\b/(lcfirst($1) eq $1) ? lcfirst($new) : ucfirst($new)/gei;
Update:
I think I may have mis-interpreted the question. It has been since corrected, and the difference turned out to be slight.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Case-preserving substitutions
by giulienk (Curate) on Jan 18, 2002 at 13:14 UTC |