Match [any] dollar amount

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Match [any] dollar amount Fri Oct 04, 2019 7:31 pm • by project_guru
I need to search inside the contents of PDF invoices. One piece of data I need to obtain is the dollar amount. I will then use this to rename the file (which I already know how to do).

The problem is that invoice amounts are always different and with a different number of digits. Therefore, I can't simply come up with a pattern for X number of digits.

What would be the best approach to achieve this?

Thanks in advance for any help.
Posts: 5
Joined: Wed Sep 25, 2019 10:44 pm

Re: Match [any] dollar amount Mon Oct 07, 2019 11:12 am • by Mr_Noodle
Try matching with surrounding text. See if there's some text that always precedes the dollar amount, for instance, and use that in your pattern to isolate which number you want to grab.
Site Admin
Posts: 8697
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Return to Support