At some point I really do need to read that damn regex book...pass the advil please.
http://danconia.org ------------------------------------------------ On Wed, 23 Jul 2003 17:51:09 -0400, "Hall, Scott" <[EMAIL PROTECTED]> wrote: > Sara, > > You can use "ucfirst". > > $TS =~ s/(\w+)/ucfirst lc $1/ge; > > Scott > > -----Original Message----- > From: Sara [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 12:59 PM > To: org > Subject: Another Regex question. > > > $TS = "THIS INPUT IS IN ALL CAPS"; > > $TS_cont = lc $TS; > > $TS now prints out "this input is in all caps" > > What If I want first letter in caps for every word in string? which should > be "This Input Is In All Caps" > > TIA, > > Sara. > > > > > > > -- > 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]