Help in Regex code

Hi All, i have a text it have multiple INVOICE ORDER values but it’s not in a constant position. I want to match all the fields and get the Invoice value and check for any invoice value is repeated or not.

I’m using below code but how to get all the matched values i might get sometimes 5-10 invoices in same PDF.

My code :

(?<=\s)\d{4}\sJOB |\d{4}\sJOB |\b\d{4}\b\sJOB

Output : i want to get the values 9208,9205,9202,9201 - these are my Invoice order values

@Learner007

Please check this

\d+(?= JOB)

Or

\d{4}(?= JOB)

Cheers

1 Like

Thanks @Anil_G it worked

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.