AnsweredAssumed Answered

Help parsing a URL to get a product code

Question asked by billsayagh on Jul 11, 2016
Latest reply on Jul 15, 2016 by Mike Duncan

I have a url as such: "http://www.site.com/johnson-level-40-6174-magnetic-laser-level-p/joh-40-6174.htm" and i want to parse it to get the "joh-40-6174" between the two values of "p/" and ".htm".

I could not use the left and right statements because the i don't have a set URL structure to begin with, as in each URL is different in length.

Any help would be greatly appreciated.

 

Thank you

Outcomes