regex part of url
Posted
by
kyle
on Stack Overflow
See other posts from Stack Overflow
or by kyle
Published on 2011-02-01T05:42:35Z
Indexed on
2011/02/01
7:26 UTC
Read the original article
Hit count: 105
So I'm trying to get the id from a url for youtube..
here is the url
http://gdata.youtube.com/feeds/api/videos/kffacxfA7G4/related?v=2
then there's also - in the url too.
it wouldn't let me post another url but it's the same as above but with the id ucvkO0x-mL4
how can I grab between videos/ and /related (the id) with regex?
I tried to use txt2re.com which is what I always use, but it's not working for this case..
thanks!
© Stack Overflow or respective owner