PDF Extraction using regex expression

Hi guy i need some help on an pdf test file
i want to only take the first 6 digit of Cost Centre
however i use this regex i get another 6 digit letter
can someone help me out ?

I use matches
\b(\d{6})\b(?!.+\b\1\b)

however i will get 511413 which is not what i wan i just wan only 906001 example ?

Hi @xxGoRpa

Use the below Regex Expression used in Find Matching Patterns activity:

(?<=\n\s*)\d{6}

Workflow:

Output:

Regards

1 Like

Holy i was scratching my head so hard and with chatgpt give me nosense :slight_smile: Thanks’ a lot

1 Like

Hi @xxGoRpa

You’re Welcome.

Happy Automation !! :blush:

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