RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 4
Title Test Details Google Video ID from URL
Expression
'/http:\\/\/\.?video.google.\w{2,3}\/videoplay\?docid=([a-z0-9-_]+)/i'
Description
This will extract the Video Id From Google Video URL which the number sequence after docid= and will check url.. make sure its a valid google link
Matches
http://video.google.com/videoplay?docid=24495753fgf30029419184# | http://video.google.ca/videoplay?docid=-6555753fgf3002941918 | http://video.google.ru/videoplay?docid=278677853fgf30029419184
Non-Matches
http://video.google.com/?docid=24495753fgf30029419184|http://google.com/videoplay?docid=24495753fgf300294191
Author Rating: Not yet rated. Rick Estrada
Title Test Details Clipser Video ID from URL
Expression
'/http:\\/\/(?:www.)?clipser\.com\/watch_video\/([0-9a-z-_]+)/i'
Description
This will extract the Video Id From Video URL which the number sequence and will check url.. make sure its a valid link - expression is in PHP format
Matches
http://www.clipser.com/watch_video/1360823 | http://clipser.com/watch_video/1360823
Non-Matches
http://www.clipser.com/videocategories.php?mtab=Categories
Author Rating: Not yet rated. Rick Estrada
Title Test Details Blip Video ID from URL
Expression
'/http:\/\/(?:www\.)?blip\.tv\/file\/(\d+).*/'
Description
extract video id from blip.tv url - expression is in PHP format
Matches
http://www.blip.tv/file/2462235 | http://blip.tv/file/2462235
Non-Matches
http://blip.tv/playlist/2462235
Author Rating: Not yet rated. Rick Estrada
Title Test Details Detect onClick Javascript in href tags
Expression
'/\\(?<\w+[^>]*\son\w+=.*[ \/].?>(?:\))?/i'
Description
Needed this to Detect onClick javascript in href tags and strip put with PHP scraping html source
Matches
<a href=\"#\" onclick=\"hideDesc('hidedescr1360823'); hideDesc('lessdescr1360823'); showDesc('descr11360823'); showDesc('moredescr1360823'); return false;\"><span class=\"grouptxt\">less</span></a> | (<img href=\"#\" onclick=\"showDesc('hidedescrtag1360823'); hideDesc('moredescrtag1360823'); hideDesc('descr1tag1360823'); showDesc('lessdescrtag1360823'); return false;\"><span class=\"grouptxt\">more</span></a>)
Non-Matches
<a href="#" ><span class="grouptxt">less</span></a>
Author Rating: Not yet rated. Rick Estrada
   Displaying page 1 of 1 pages; Items 1 to 4

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials