RegEx for the first complete digit occurs after certain word

Hello,
I am struggling with getting information from PDF
I almost tried all OCR engines
I ended up using OmNI
However still I need to work on RegEX
I appreciate if you can help me with this expression.
I need the number “666666666”

Sample 1


Name
Address
Application Number 6666666666

Sample 2

“Name address application number 666666666”

Sample 3

“Name
Address

Application number

666666666”

Hi @BHA

Please try this regex

(?<=application number)[\n\d\s]*

Refer this post to make patterns case insensitive.

And finally trim the output value using trim function.

Thanks


Kindly note the RegexOption Case Insensitve was configured (yello marked i)

Refer to the Match / Groups
grafik

We would recommend also to trim the matched value

@BHA - As an alternate you can try this too…

Note: If you are using Matches activity, please choose “Ignore Case” as shonw above…

2 Likes

Thanks a lot
It worked perfectly

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