I don't think you need to do regex here. I don't have a perl machine here
right now so I can just give you pointers:
use "split" to get the separate words into strings, then go trough those
strings and do
ucfirst $string;
this will return you the string with first letter uppercased and put them
together again.
Hope this helps,
Joni
-----Original Message-----
From: Salvador Lopez [mailto:[EMAIL PROTECTED]]
Sent: 27 July 2001 05:15
To: [EMAIL PROTECTED]
Subject: regular expressions
Hello All,
how can i convert only the first letter of each word
in a string without changing any other characters?
Is this a job for regular expressions?
For example, convert:
FROM: "hello world. goodbye cruel world"
TO: "Hello World. Goodbye Cruel World"
any help is appreciated.
--sal
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]