-Karl- Posted May 15, 2010 Share Posted May 15, 2010 What would it be to check an url follows the patterns http://www.domainname.com/ and http://subdomain.ipbfree.com Quote Link to comment Share on other sites More sharing options...
-Karl- Posted May 15, 2010 Author Share Posted May 15, 2010 Would the first one be like this? (http://)?(www.)?([^.]+).com Quote Link to comment Share on other sites More sharing options...
TeddyKiller Posted May 16, 2010 Share Posted May 16, 2010 Hey sexy karl. Try this regex. ^http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$ Whats my source? Google. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.