Why i'm not able to extract values from .txt file with Regex?

I’m trying to extract data from .txt file by using “Matches” activity but i’m getting “Write Line: Object reference not set to an instance of an object.”
It’s weird because this is only happening if i use the output from the OMNI Ocr as input in “Matches”.
Otherwise if i put the full text in “Matches” input parameter, it is working.

Here is my example:
ID Scan.zip (357.5 KB)

Hi,

Linebreak of the text is CR+LF. So we need to care with CR.
Can you try the following pattern?

(?<=MKD\r?\n)(.*)

Regards,

1 Like

Thank you @Yoichi your answer helped. :slight_smile:

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