cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Basics of a Split RegEx

Jump to solution

What does the below do....I'm not sure if the (.+] bracket is correct

_+\/(.+]\/[*\/]+S

I found the above at https://threewill.com/getting-started-with-nintex/
but am having a hard time reading it and understanding

I searched Google for over an hour on Google for a primer on RegEx and did not find much.  Any suggestions would be great to help me understand the above and other basic information on RegEx would be great.

Labels: (1)
Tags (2)
Reply
3 Replies
Workflow Hero

Re: Basics of a Split RegEx

Jump to solution

Hello!

RegEx is a tricky beast. 

I like to use www.regexr.com to figure out what I need. 

 

What this is supposed to do is pull out the last string of characters between 2 forward slashes that come before the final string that doesn't have another forward slash.

But ... that one is odd. The +S doesn't work as far as I can see. 


This one is better, but just captures the full string up to the file.

_*\/(.+)\/[^\/]+\/

Check this out: 

RegExr: Learn, Build, & Test RegEx 

Are you looking to simulate what the blogger did, exactly? 

Reply
Workflow Hero

Re: Basics of a Split RegEx

Jump to solution

Correct. I am trying to replicate exactly what the blogger did...

Reply
Workflow Hero

Re: Basics of a Split RegEx

Jump to solution

regular expression on a posted link is hardly readable from picture but I believe it should have been this one

.*\/(.+)\/[^\/]+$

I'd recommend to use Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript  regular expression tester - it tries  to explain how does regular expression and its single patterns evaluate

Reply