On Friday 08 October 2010, 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

The $, ( and ) characters have special meaning in a regexp:
* $ means the end of the line
* ( opens a group
* ) closes a group
To match a literal $, ( or ) you have to escape them with a backslash. This 
should work:

reg = /Internation tip \(\$\d{1,2} fee\)/

I hope this helps

Stefano