Regex for this?
Posted: Fri Aug 06, 2004 3:42 pm
Dear All,
I have an URL address of the form
/string/anotherstring/yetanotherstring21
Any number of /strings/ can occur in the address - can anyone tell me if I can
[a] Detect whether or not a number has occurred after 'yetanotherstring'
and if so
Extract this number into a variable
Sometimes, a number will not appear at the end and therefore this case needs to be discounted.
Many thanks
Mark
I have an URL address of the form
/string/anotherstring/yetanotherstring21
Any number of /strings/ can occur in the address - can anyone tell me if I can
[a] Detect whether or not a number has occurred after 'yetanotherstring'
and if so
Extract this number into a variable
Sometimes, a number will not appear at the end and therefore this case needs to be discounted.
Many thanks
Mark