Skip to main content
Nintex Community Menu Bar

Get query string parameter in a workflow with regular expression?

  • Aug 28, 2018 7:23 PM UTC
  • 3 replies
  • 27 views
  • Translate All

Forum|alt.badge.img+8

I am regular expression handicapped.   Can anyone help with a regular expression to get the value of a query string parameter?

Example

Say I have the URL

https://mysite/myserver.com?ID=230&User=123.     How do I get the value 230 from the string for the ID parameter using a Nintex workflow regular expression action?

3 replies

Forum|alt.badge.img+8
  • Author
  • Aug 29, 2018 1:05 PM UTC

I found a similar question about LDAP strings and adapted the answer.   It is really clos but chops off the last couple of characters.   Example if ID-230  2 is returned.

Translate

bamaeric
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Aug 29, 2018 5:14 PM UTC

Hi Bruce,

Try this pattern:  (?<=ID=)[^&]+

Translate

Forum|alt.badge.img+8
  • Author
  • Oct 16, 2018 7:46 PM UTC

Sorry for taking so log to get back.  I had a workaround but your answer is better.   Thanks for the help.

Solution used in project TOR - Delegate Task

Translate