SHARE
TWEET

Untitled

a guest Aug 11th, 2013 65 Never
  1. ^.+(?|&)v=([a-zA-Z0-9]+).*$
  2.        
  3. hxxp://www.youtube.com/v/$1
  4.        
  5. hxxp://www.youtube.com/?watch="YoutubeID"
  6.        
  7. Youtube.com/v/youtubeID.
  8.        
  9. http://www.youtube.com/watch?v=67-YcLickUA
  10.        
  11. use strict;
  12. use warnings;
  13.  
  14. my $string = 'http://www.youtube.com/watch?v=67-YcLickUA';
  15.  
  16. $string =~ s(.+watch?v=([0-9a-zA-Z-]+))(Youtube.com/v/$1);
  17.  
  18. print "$stringn";
RAW Paste Data
Top