Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: RegExp URL validation

YURII :


var re = /^(https?:\/\/)?([0-9a-z\.-]+)[^-]\.([a-z]{2,9}\.?)([\/#].\S*)*$/i;


re.test("http://ift.tt/2yEtdGY");
re.test("http://ift.tt/2AKaonh");

Hi guys. What i must add or change, so that parametres in URL cant start with &(ampersand), like in second example ?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: RegExp URL validation

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×