From: seanh1313@... Date: 2010-10-08T23:55:59+09:00 Subject: Re: regexp issue 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 : http://www.regextester.com/ http://www.regular-expressions.info/reference.html http://javascript.about.com/library/blre.htm ---- Idealone Ideally wrote: > Hi All, > I have an issue in parsing regular expression and im new to > regexp. > Varaiable = "Internation tip ($25 fee)" > The $25 might vary each time, it might be $5, $ 10 so on > > I tried doing something like this which didnt work, kindly help > variable = "Internation tip (regexp:$[0-9][0-9]+ fee)" > i want the regular expression to aid both single digit or multi digit > currency. > > Cheers > -- > Posted via http://www.ruby-forum.com/. >