Ok, I have this code in PHP:
$url = 'http://www.youtube.com/watch?v=TUZwdbeS2mM';
preg_match("/v=([^(\&|$)]*)/", $url, $matches);
$vid = $matches[1];
$vid would be TUZwdbeS2mM.
Now, I would like to do this in Java but I've never used regex in Java. I'm guessing the actual regex code is exactly the same, but I need a substitute for the function preg_match.
Thank you all!!