URLs
Looking for valid URLs
Valid URLs are protocol://someadress, for this example we are going to use a file with this content:
- http://www.google.com
- http:/www.google.com
- ftp://123.44.5.22
- https://255.122.22.11
- htt://google.com
- http://google.com
- file://somefile
- file//another-file
We will support these protocols:
- http
- https
- ftp
So, the expression for find these values is quite simple:
- http://www.google.com
- ftp://123.44.5.22
- https://255.122.22.11
- http://google.com
- file://somefile
Where:
If you like this post please pay me with a click on the ads :)