Text:
Total amount due (inc. GST $7.68) $84.55
Regex:
Total Amount.?\s*(?!\(inc\))?[^\$]*(\$\s?[0-9,]+(\.[0-9]{1,})?)
https://regex101.com/r/YXr023/1
but it matches the first amount that it finds $7.68
. How do I ignore anything inside brackets so it matches $84.55
instead?
Appending (?![^\(]*\))
to the end ignored the line completely, which I don't want.