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

Question

Question

Cloud Pattern Matching - Getting Next Line after the words Last Name

asked on August 17, 2022 Show version history

We have a customer trialing cloud and trying to get the next line after last name

After helping configure the workflow, the pattern matching token is always (None)

So we copy the text input from the tokens tab, of the workflow after running

Then we put the text into the Workflow pattern matching token test area

The test returns a result. So it appears the runtime pattern maching engine is not equivalent to the test pattern matching engine. This is a problem we had with on-prem as well, except with on prem I could simply add a carriage return character into the pattern to solve it (the test would fail, but the runtime would work), in this case that does not work.

Not sure how to create a pattern in Cloud that can get the next line after matching Last Name

 

It is also very confusing getting different pattern matching results when testing compared with runtime.

0 0

Answer

SELECTED ANSWER
replied on August 17, 2022

Capture Profiles return multi-value tokens with one line per value when reading a region with multiple lines of text. You can either using indexes if you know which line you want or you can join all lines with a delimiter to turn it into a single block of text before putting it into Pattern Matching.

0 0
replied on August 17, 2022

Interesting, it was a multi value token, although it was not clear at all. But when I added a combine function I could run the pattern and now I can use something other than new line which is helpful too. It might help to be a bit more clear that this token is multi-value when we are working with it.

I thought it used to look like this when displaying the values of a multi-value token in the logs, with a line between the values. I have seen this so many times in other products that it was my indicator to know if someone was passing me multiple values.

line 1                               
line2

0 0
replied on August 17, 2022

I think you might be thinking of the inline regular expression editor. Instance details does not display horizontal lines between values in a multi-value token.

0 0
replied on August 18, 2022

Ah that is where I saw it. Usually the only way I under up with a multi-value token is if I define it and create a list of values somehow, this was the first time one just popped out of nowhere and I didn't know I was working with one.

0 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.