I am hoping to find someone here which can give me a hand with some regex I need to modify.
This regex is being used in JavaScript for some validation:
/^([A-Z]{3} [0-9]+\.[0-9]{1,2}(, )?)+$/
This will correctly validate the following values:
EUR 20.3, USD 9.0
GBP 8.8
I would like to modify the regex to also accept negative values such as:
EUR -20.3, USD -9.0
I thank you for your help :)
Regards Gabriel