Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 11th, 2013  |  syntax: None  |  size: 0.35 KB  |  views: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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";
clone this paste RAW Paste Data