in reply to Re: Re: Case-preserving regexp search and replace?
in thread Case-preserving regexp search and replace?

If you want to keep the case of the last letter, then the other solution in perlfaq6 is what you want.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: Re: Re: Case-preserving regexp search and replace?