From: Robert Klemme Date: 2010-10-09T02:10:24+09:00 Subject: Re: regexp issue On 08.10.2010 16:55, seanh1313@tx.rr.com wrote: > I think what you would want is : > > \$[0-9]{1,} fee > > '\$' says that you are looking for the '$' character not the end of > the line...which is what I think you are looking for. Then you have > the [0-9]{1,} which says that you are looking for at least one > number, but that there could be more. This should work for you, but > you can also check out these links : Instead of [0-9] you can type \d and instead of {1,} you can type + - much less hassle. :-) And then of course you also need a capturing group to get at the digits. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/