jquery - javascript url regex -
I use a regex in JavaScript to enter both subdomain and domain names without users http: // prefix How can I give permission? I need to allow: Try it out: A ? Marking the www group with makes it a zero or a match, which is what I understand. domainname.com or www.domainname.com or www.domainname.co.uk. At this time I hope to www. :
/ ^ (? = Www.) [A-Za-z0-9 _-] + \. [E-za-j0-9 \ /% & Amp; = \? _: -] + $ / ix.test (value);
/ ^ (? = Www.)? [E-za-j 0-9 _-] + \. [E-za-j0-9 \ /% & Amp; = \? _ :; -] + $ / <
Comments
Post a Comment