I need to write a python regex expression to match the different ways of writing dollars:
$100
$1,000
$1,000.99
$50 millions
1 dollar
6 cents
50 dollars and 5 cents
5,000.6 dollars and 5 cents
I've managed to match the first 4 cases but I can't come up with something that will match the cases with the actual "dollars()" and "cent(s)" words