Forum Moderators: open
var youtube = 'http://www.youtube.com/watch?v=44xb9nb2P7g';
var youtube = youtube.match(/=(\w{11})/g);
var youtube = youtube.replace(/=/,'');
(In the example I'm trying to get the last 11 characters following the equal sign.)