Regex to match all valid links

Posted by Unkwntech on Stack Overflow See other posts from Stack Overflow or by Unkwntech
Published on 2009-01-14T09:35:30Z Indexed on 2010/06/18 2:53 UTC
Read the original article Hit count: 394

Filed under:
|

In regards to this: http://stackoverflow.uservoice.com/pages/general/suggestions/103227-parser-does-not-match-all-valid-urls is this regex adequate or will it need to be refined, if it needs to be refined how so?

\b(?P<link>(?:.*?://)[\w\-\_\.\@\:\/\?\#\=]*)\b

© Stack Overflow or respective owner

Related posts about regex

Related posts about url