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

Question

Question

Pattern Matching test output does not match the live session output

asked on November 2, 2015 Show version history

I have a PM setup to capture line two of the OCR output, to capture an address. The PM syntax works perfectly in the test window, but fails to output anything at all in the live session. I'm using the actual output from my session OCR zone for testing. Any ideas? Thank you!

 

0 0

Answer

SELECTED ANSWER
replied on November 2, 2015

The runtime value is correct because pattern matching is greedy and the first .* matches everything. If you're looking for the second row, try replacing .* ("any character") in your pattern with [^\n]* ("any character except for a newline character") to make it only match until it finds the end of the first line.

0 0

Replies

replied on November 2, 2015

That worked! Thank you for your help.

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

Sign in to reply to this post.