I wan to make regex for money that can validate amount with Commas, assumed decimals, negative sign or parentheses, dollar sign, decimals, numeric only.
I have used the following expression
((\\$?(([0-9]{0,1})?\\.[0-9]{1,2}))|(\\$?([1-9]{1}[0-9]{0,2}([,][0-9]{3})*)(\\.[0-9]{1,2})?))
It works fine for $23,000 etc. but how to handle negative sign or parentheses
Please advice.