I need to figure out how to strip a certain style of number from urls. The challenge, I know the format of the number, but the actual number will be different every time. The second challenge? The number can appear in different places in the url.
I need to strip numbers that look like this: 102-5152600-7203338
from urls that look like this:
http://www.amazon.com/exec/obidos/tg...125745-6132915
or this:
http://www.amazon.com/exec/obidos/tg...utlet&n=548166
or whatever other crazy format Amazon decides to use.