Bob_S
Scholar

Workflow regular expression: replace url part after 3rd slash

Jump to solution

I've got a regular expression action in Nintex Workflow where I need to replace everything after the third slash of a url.

- This is the url: http://www.testurl.com/this-part/needs-to/be-replaced

- This part should be replaced: this-part/needs-to/be-replaced

- With this: become-this


So the final url is like this: http://www.testurl.com/become-this 

 

What Regex pattern should I use for this?

0 Kudos
Reply
1 Reply
mlauer
Collaborator

Re: Workflow regular expression: replace url part after 3rd slash

Jump to solution

You can use the pattern ^([^\/]+\/\/[^\/]+\/).*$ and the replacement text $1become-this

 

 

grafik.png

Reply