Extract an amount

Hi,
I am struggling with how to extract an amount from a statement. The issue is the amount is written in a format that changes slightly depending upon whether it is under 1,000 or over. So the format is xxx.xx USD or x,xxx.xx USD, or xx,xxx.xx USD etc. If I create a custom text, naming it "Amount" 123,123.123 USD for Contents contain match this works, and I can use this to name the document, but this fails when the amount is under 1,000 USD, as there is no comma in the amount.
Is there a better way, or do I have to create duplicate rules for < 1,000, then up to 99,999 etc?
Thanks
I am struggling with how to extract an amount from a statement. The issue is the amount is written in a format that changes slightly depending upon whether it is under 1,000 or over. So the format is xxx.xx USD or x,xxx.xx USD, or xx,xxx.xx USD etc. If I create a custom text, naming it "Amount" 123,123.123 USD for Contents contain match this works, and I can use this to name the document, but this fails when the amount is under 1,000 USD, as there is no comma in the amount.
Is there a better way, or do I have to create duplicate rules for < 1,000, then up to 99,999 etc?
Thanks