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.

I've tried using split / join / lc / ucfirst which does most of the work but
loses the spacings.

That's how I would do it. Just put parenthesis around your split pattern and it will return the spaces in its list. It won't hurt to change the case of spaces and when you re-join them it'll be just like it was. You can handle that without me typing out the line, right? ;)


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to