jewcat 0 Posted December 6, 2009 Report Share Posted December 6, 2009 Alright, let's take for instance a Youtube URL. And say I'm compiling a list of Youtube video IDs. The URL structure is obviously the same for every video. ex. So how can i go about stripping off the "http://www.youtube.com/watch?v=" and being left with a variable whose value is simply the "mCS6LmYSzbY" ? Suggestions appreciated Quote Link to post Share on other sites
Guest Jim Posted December 7, 2009 Report Share Posted December 7, 2009 Here's an example of using javascript inside an $eval statement that should help you out. Could be made sorter by using a regular expression instead of doing the replace function twice for matching with or without (www.), but this is simpler. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.