I have the bot returning some OCR text, ocr does pretty good job returning text clearly, i have to do a string exist and check if a dollar amount exist in that string, string exist works 80% of the time but some time ocr changes the dollar amount format but missing a comma , adding a space , missing decimal dot etc , which obviously messes up any straight string exist check
Ex of number i am checking
dollarAmount= 20,650.131
ocr text example when returns wrong format getText =
@“New Status:
HIM ROI Submitted - External Audit
Next Follow-up Date:
Comments: Update Correspondence
External Audit General
Field
Stage
Owning Area External Audit Request Technical Denial
Value
External Audit Info
Health Information Management Ex
External Audit Review Type
External Audit Amount
External Audit Repayment Total Am
External Audit Repayment Date Complex
20 650 131
Accept Cancel”
my if condition
getText.Contains(dollarAmount)
so best option seems to be a regex match , that check if the number exist but ignore space , comma and decimal dot, what is a good regex code i can use?
What kind of statement do i need to put in my if condition to say, does the
dollarAmount exist in the ocr return string exclude comma ,space, dots