Skip to main content
Nintex Community Menu Bar

Get query string parameter in a workflow with regular expression?

  • August 28, 2018
  • 3 replies
  • 25 views

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
  • August 29, 2018

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.


bamaeric
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • August 29, 2018

Hi Bruce,

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


Forum|alt.badge.img+8
  • Author
  • October 16, 2018

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