Skip to main content
Nintex Community Menu Bar

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

  • March 13, 2019
  • 2 replies
  • 13 views

Forum|alt.badge.img+4

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

2 replies

Forum|alt.badge.img+5
  • Nintex Partner
  • March 13, 2019

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


Forum|alt.badge.img+14
  • Scholar
  • March 13, 2019

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

 

 

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

938i5BCFD264D7CA7904.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)

 

 

 

939i1E0F754D661C62BC.jpg