Hi, i’d to update some conditions in my regex pattern.
Pattern: “(?<=(Total Amount|\bTotal\b|Total Due|Total Amount Due)\s+)(ZAR|R|)[\s-$\d,.]+”
This pattern covers: Total Amount,Total, Total Due, Total Amount Due
What I don’t Want: SubTotal - that is working fine
Problem I’m facing is: if the text is Sub Total, the pattern takes the Sub Total as Total as there is a space between the Sub and Total
I’d like to update the pattern, how can I do this