text = "I have usd **12** only."
var amount = text.match(\(?:USD|usd)\s+.?
\d+\.?[0-9]{1,2}\);
it returns
usd *12
I'm trying to grab the number only out of this return?
Is it possible to use "amount" again like this:
amount.match(\\d+\.?[0-9]{1,2}\);