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

Question

Question

Remove text of one field from text of another in WF

asked on March 16, 2015

I need to compare two fields and remove out the value of the one field from another.

 

Example

A: Hello World

B: Hello World How are You

result: How are you

 

Basically i need to insert a token into the regex expression, but I can't for the life of me figure out how to do it.

0 0

Answer

SELECTED ANSWER
replied on March 16, 2015 Show version history

Please see the screenshot below

When you use the Pattern Matching activity in Workflow, you should have that option. If you don't see it, please specify the version of Workflow you are using.

For the actual workflow itself, you can retrieve the values from the two fields and using the pattern matching activity, set the input to be the second field and the pattern to be the token from the first field followed by something like

\s*(.*)

Here is what the workflow results look like

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.