Posted By

alistairholt on 04/29/09


Tagged

url


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Regex for matching URLs (without http:///)


 / Published in: Regular Expression
 

Run with global and ignoreCase flags.

  1. ^([a-z0-9]+\.)?([a-z0-9]+\.)+(com|edu|biz|gov|in(?:t|fo)|mil|net|org|[a-z][a-z]||[a-z][a-z]\.[a-z][a-z])(/[\w-./?%&=#]*)?$

Report this snippet  

You need to login to post a comment.