cancel
Showing results for 
Search instead for 
Did you mean: 
bob_pidpa
Nintex Newbie

Nintex Workflow - Regular expression: extract after third equality sign (=)

Jump to solution

In my Nintex Workflow I'm searching for the regular expression to extract the projectnumber after the third equality sign (=) from the string below:

PRODUCT=glass order=500568 projectnr=F-85-878 promocode=889965442

Labels: (1)
0 Kudos
Reply
2 Replies
graham
Nintex Newbie

Re: Nintex Workflow - Regular expression: extract after third equality sign (=)

Jump to solution

Assuming that your layout will always be like this, why not Split the string around the '=' into a collection and take the 5th element - then replace the ' promocode' at the end of the string with nothing.

This is going to be so much easier to understand than a regex

0 Kudos
Reply
emha
Automation Master
Automation Master

Re: Nintex Workflow - Regular expression: extract after third equality sign (=)

Jump to solution

if your concern is realy to get a value after 3rd equal sign, following pattern might work

 

 

(?<=((?:[^=]+=)[^=]+(?=(\s|$))){2}[^=]+=).*(?=\s)

i.jpg

 

 

 

 

 

if the value you want to get is always prefixed with 'projectnr=' then it can be simplified as follows and then it doesn't matter on what position key-value pair appears

 

(?<=projectnr\=).*(?=\s)

 

 

 

i.jpg

View solution in original post

Reply