From: Ehsanul Hoque Date: 2010-06-17T14:36:06+09:00 Subject: Re: RegEx Tutorial? --_18f89358-ba1d-414e-9031-3c93031d005a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To test regular expressions (and with a handy little regex reference at the= bottom)=2C use rubular: http://rubular.com/ And for your particular issue=2C try this: str =3D "this Is Some test String eh?" cap_words =3D str.scan(/[A-Z]\w+/= ) - Ehsan > Date: Thu=2C 17 Jun 2010 13:34:36 +0900 > From: chandrasekaran.siddarth@gmail.com > Subject: RegEx Tutorial? > To: ruby-talk@ruby-lang.org >=20 > I looked through the archives=2C but couldn't find a comprehensive > tutorial on regular expressions -- could someone please point me to > one? >=20 > Specifically=2C I'm looking to extract all the words from a string that > are capitalized=2C but can't find case-based match operators. >=20 > Thanks=2C >=20 > Siddarth >=20 =20 _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with H= otmail.=20 http://www.windowslive.com/campaign/thenewbusy?tile=3Dmulticalendar&ocid=3D= PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5= --_18f89358-ba1d-414e-9031-3c93031d005a_--