12 Replies Latest reply on Jul 15, 2016 6:14 AM by Mike Duncan

    Help parsing a URL to get a product code


      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