Jump to content

URL Validation


karldesign

Recommended Posts

I'm sick of looking on Google and other websites trying to find a really simple URL checker for a function...

 

All I want to do is check the URL has the following attributes:

 

1) http:// or https://

2) may/may not have www.

3) have a string between, which allows common characters for URLs

4) must finish with a .xxx, where .xxx is a possible URL ending

 

Any help in constructing this would be excellent.

Link to comment
https://forums.phpfreaks.com/topic/106758-url-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.