I'm very rusty with regex right now so I'll illustrate my problem with an example:
//url/fb9ceb12-1492-4b01-b951-30e848f3adbc/fb9c2b12-1496-4r01-b92b-30e848f3adbc/keyword/.....
I'm trying to match the text in italics i.e. the string betweeen the /keyword and the / preceeding it. So far my I have managed to achieve this regex:
(?!\/)()(?!\/keyword)(.*)(?=\/)
Which unfortunately yields the entire string //url/fb9ceb12-1492-4b01-b951-30e848f3adbc/fb9c2b12-1496-4r01-b92b-30e848f3adbc/ before /keyword/ and not fb9c2b12-1496-4r01-b92b-30e848f3adbc.
Any help would be appreciated!