R
Richard Powell
Hi, =0AIm in need of capitalizing first letter of each line in a long strin=
g, and have =0Ait print exactly the same (but with the first word capitaliz=
ed+with the =0Awhitespace).. but cant figure it out.. any advise?=0A=0Ataco=
=A0=3D <<-HERE=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0to bad I hate tacos they=A0taste great..=0A=A0 so much for a HEALTHY die=
t....=0A=0AHERE=0A=0Ataco.scan(/\W+\.*\w+\.*/){|x| print x.capitalize}=0A=
=0A______=0A=0Aim guessing my regular expression is wrong. and possibly the=
.capitalize is in =0Athe wrong space?=0Asorry im a newbie =0Athanks=0Ari=
ch=0A=0A=0A =0A____________________________________________________________=
________________________=0ADon't pick lemons.=0ASee all the new 2007 cars a=
t Yahoo! Autos.=0Ahttp://autos.yahoo.com/new_cars.html
g, and have =0Ait print exactly the same (but with the first word capitaliz=
ed+with the =0Awhitespace).. but cant figure it out.. any advise?=0A=0Ataco=
=A0=3D <<-HERE=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0to bad I hate tacos they=A0taste great..=0A=A0 so much for a HEALTHY die=
t....=0A=0AHERE=0A=0Ataco.scan(/\W+\.*\w+\.*/){|x| print x.capitalize}=0A=
=0A______=0A=0Aim guessing my regular expression is wrong. and possibly the=
.capitalize is in =0Athe wrong space?=0Asorry im a newbie =0Athanks=0Ari=
ch=0A=0A=0A =0A____________________________________________________________=
________________________=0ADon't pick lemons.=0ASee all the new 2007 cars a=
t Yahoo! Autos.=0Ahttp://autos.yahoo.com/new_cars.html