I would like to isolate a certain part of a URL if the structure remains the same:
ex. URL – http://www.URL.co.uk/87/318/carrot_cake/
it is the 318 part of the example above, however the number can range between 1 – 999999 – but will always remain between 2 x ‘/’ and to the left of the title (carrot_cake in the example) this is where I strugling.
Thanks,
B
This should work:
Update: fixed code, and tested