Advertisement
Guest User

Untitled

a guest
Aug 11th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement