Re: case conversion problem

2003-09-11 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Jenda Krynicky wrote: > From: Gary Stainburn <[EMAIL PROTECTED]> >> I've got to tidy some data, including converting case. I need to >> convert >> >> ANOTHER COMPANY NAME LTD ** >> >> to >> >> Another Company Name Ltd ** >> >> while retaining spaces.

Re: case conversion problem

2003-09-05 Thread David Wall
--On Friday, September 05, 2003 2:14 PM +0100 Gary Stainburn <[EMAIL PROTECTED]> wrote: I've got to tidy some data, including converting case. I need to convert ANOTHER COMPANY NAME LTD ** to Another Company Name Ltd ** while retaining spaces. I've tried using split / join / lc

Re: case conversion problem

2003-09-05 Thread Paul Johnson
On Fri, Sep 05, 2003 at 12:29:31PM -0700, david wrote: > John Fisher wrote: > > > I am trying to figure out how clever it actually is. > > I reversed \L\u with \u\L expecting different results and got the same > > result. Another Company Name Ltd > > > > Why didn't reversing the metacharacters c

re: case conversion problem

2003-09-05 Thread david
John Fisher wrote: > I am trying to figure out how clever it actually is. > I reversed \L\u with \u\L expecting different results and got the same > result. Another Company Name Ltd > > Why didn't reversing the metacharacters change the results. > [snip] > > $pt=~s/(\w+)/\u\L$1/g > > $pt=~s/

re: case conversion problem

2003-09-05 Thread JOHN FISHER
I am trying to figure out how clever it actually is. I reversed \L\u with \u\L expecting different results and got the same result. Another Company Name Ltd Why didn't reversing the metacharacters change the results. the \L escape forces lowercase When written in lowercase (\l and \u), they affec

Re: case conversion problem

2003-09-05 Thread James Edward Gray II
On Friday, September 5, 2003, at 08:52 AM, Gary Stainburn wrote: On Friday 05 Sep 2003 2:25 pm, Jenda Krynicky wrote: From: Gary Stainburn <[EMAIL PROTECTED]> I've got to tidy some data, including converting case. I need to convert ANOTHER COMPANY NAME LTD ** to Another Company Name Ltd

Re: case conversion problem

2003-09-05 Thread Paul Johnson
Jenda Krynicky said: > From: Gary Stainburn <[EMAIL PROTECTED]> >> I've got to tidy some data, including converting case. I need to >> convert >> >> ANOTHER COMPANY NAME LTD ** >> >> to >> >> Another Company Name Ltd ** >> >> while retaining spaces. > > $text =~ s/(\w+)/\L\u$1/g;$y \L\

Re: case conversion problem

2003-09-05 Thread Gary Stainburn
On Friday 05 Sep 2003 2:25 pm, Jenda Krynicky wrote: > From: Gary Stainburn <[EMAIL PROTECTED]> > > > I've got to tidy some data, including converting case. I need to > > convert > > > > ANOTHER COMPANY NAME LTD ** > > > > to > > > > Another Company Name Ltd ** > > > > while retaining sp

Re: case conversion problem

2003-09-05 Thread Paul Johnson
Gary Stainburn said: > Hi folks, > > I've got a problem I hope you can help me with. > > I've got to tidy some data, including converting case. I need to convert > > ANOTHER COMPANY NAME LTD ** > > to > > Another Company Name Ltd ** > > while retaining spaces. > > I've tried using split

Re: case conversion problem

2003-09-05 Thread Jenda Krynicky
From: Gary Stainburn <[EMAIL PROTECTED]> > I've got to tidy some data, including converting case. I need to > convert > > ANOTHER COMPANY NAME LTD ** > > to > > Another Company Name Ltd ** > > while retaining spaces. $text =~ s/(\w+)/\L\u$1/g;$y Jenda = [EMAIL PROTECTED] === ht

Re: case conversion problem

2003-09-05 Thread James Edward Gray II
On Friday, September 5, 2003, at 08:14 AM, Gary Stainburn wrote: Hi folks, I've got a problem I hope you can help me with. I've got to tidy some data, including converting case. I need to convert ANOTHER COMPANY NAME LTD ** to Another Company Name Ltd ** while retaining spaces.

case conversion problem

2003-09-05 Thread Gary Stainburn
Hi folks, I've got a problem I hope you can help me with. I've got to tidy some data, including converting case. I need to convert ANOTHER COMPANY NAME LTD ** to Another Company Name Ltd ** while retaining spaces. I've tried using split / join / lc / ucfirst which does most of the