I'm trying to scrape the number after the "/" and before the "?". In this example, I'm trying to scrape 170925953396. Anyone know what the regex is?
http://www.ebay.com/itm/NIKE-MEN-TRA...item27cbfb1174
Printable View
I'm trying to scrape the number after the "/" and before the "?". In this example, I'm trying to scrape 170925953396. Anyone know what the regex is?
http://www.ebay.com/itm/NIKE-MEN-TRA...item27cbfb1174
The url was truncated.
ebay.com/itm/NIKE-MEN-TRAINING-RUNNING-SHOES-LUNAR-EDGE-WHITE-SIZE-10-5-NEW-886059090595-/170925953396?pt=US_Men_s_Shoes&hash=item27cbfb1174
Label1.Text = Regex.Match(s, "(?<=/)(?<Name>\d*)(?=\?)").ToString
That would be:
/\d+\?
(?<=\/)(?<Name>\d*)(?=\?) works. (/ needed to be escaped).
/\d+\? scrapes the number with a ? at the end.