You are viewing limited content. For full access, please sign in.

Question

Question

I have a zonal ocr I need help capturing into the metadata

asked on July 12, 2024

I have a zonal ocr that I used set as multi-line, numeric

The values are:

Old Loan Number: 0000111111

Loan Number: 1000011111

The issue I am having is 'loan number' word is in both.  How do I capture the 'new' loan number from the loan number location?  

Old Loan Number:  Type=token; input %(Get Account Numbers); pattern:  Old Loan Number: (\d+); match case=no

Loan Number:  Type = token; input %(Get Account Numbers); pattern: \nLoan Number: (\d+)

I've also tried the pattern ^old  (no old)

0 0

Answer

APPROVED ANSWER
replied on July 15, 2024

For getting matches that do not start with Old, you can try an expression like

(?<![O0][l1I][d])\s+[LI1][o0][a][n]\s+[N][u][m][b][e][r][:;\.]\s+(\d+)

You need to set a negative Lookahead "(?<![O0][l1I][d])" so it does not evaluate if it has "Old" before "Loan Number"

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.