Regex for validating url and dating web site

// fragment '$/i'); Mathias Bynens has a great article on the best comparison of a lot of regular expressions: In search of the perfect URL validation regex The best one posted is a little long, but it matches just about anything you can throw at it.

:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9] )(?

regex for validating url-82regex for validating url-78regex for validating url-72

:%[0-9a-f][0-9a-f]|[-a-z0-9\._~\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x\x-\x! :[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(? :[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])))|::(? // top level domain OR '|((\d|[1-9]\d|1\d|2[0-4][0-9]|25[0-5])\.)'. // path and query string optional '(#([a-z0-9$_\.\ !

Leave a Reply