From: Chris White Date: 2011-09-10T00:13:40+09:00 Subject: Re: Regex Problem --_63179806-d283-4cb3-8ac7-af62a1cd15e4_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > I am trying to match this pattern: >1_9_1912_F3 >=20 > Here is my stab at it: > if f3_entry =3D~ /(>*\_*\_*\_F3)/ > f3_out.puts f3_entry > end >=20 > Obviously=2C it doesn't work. I need to match whatever is between those > underscores. Am i going in the right direction? Thanks in advance! If that's all you need then I'd just use split and call it a day: irb(main):001:0> "1_9_1912_F3".split(/_/)=3D> ["1"=2C "9"=2C "1912"=2C "F3"= ] Regards=2CChris WhiteTwitter: http://www.twitter.com/cwgem = --_63179806-d283-4cb3-8ac7-af62a1cd15e4_--