/ Published in: Regular Expression
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
URL: http://daringfireball.net/2009/11/liberal_regex_for_matching_urls
Comments
 Subscribe to comments
                    Subscribe to comments
                
                