Posted By

arpit on 12/13/09


Tagged

url


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

tiffle
Tyster


Regex to detect urls


 / Published in: Regular Expression
 

URL: http://daringfireball.net/2009/11/liberal_regex_for_matching_urls

  1. \b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))

Report this snippet  

You need to login to post a comment.