Skip to main content
Nintex Community Menu Bar

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

  • Mar 13, 2019 7:24 AM UTC
  • 2 replies
  • 27 views
  • Translate All

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
  • Mar 13, 2019 9:22 AM UTC

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

Translate

Forum|alt.badge.img+14
  • Scholar
  • Mar 13, 2019 9:38 AM UTC

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

Translate