how to regex this string in ruby?
i have sample string like this :
a = "$65,000 /year for 2 years"
b = "Total of $120,000 ($60,000 per annum)"
c = "$40,000.0"
how to get result like this using regex :
a = "$65,000"
b = "$120,000"
c = "$40,000"
how do that?
thanks before