Can you pick out the first 1, 2 or 3 digits from a string?
Posted: Wed Jul 02, 2014 11:01 am
We have URLs a bit like this:
http://www.site.co.uk/product/531/Test- ... /126/LARGE
I want to pick out just that THIRD set of digits (the product ID).
I cannot do it by saying "start at character x and pick up the next 3", because it obviously varies.
Can you think of a way I could collect them into a variable??
http://www.site.co.uk/product/531/Test- ... /126/LARGE
I want to pick out just that THIRD set of digits (the product ID).
I cannot do it by saying "start at character x and pick up the next 3", because it obviously varies.
Can you think of a way I could collect them into a variable??