regex to eliminate port number from url |
Technically, this is a valid URL:
http://username:[email protected]=:40#:yes So you are better off parsing it with PHP's parse_url function: PHP Code: <?php |
Messages In This Thread |
regex to eliminate port number from url - by cupboy1 - 06-14-2017, 07:45 PM
RE: regex to eliminate port number from url - by rtenny - 06-15-2017, 08:15 AM
RE: regex to eliminate port number from url - by skunkbad - 06-15-2017, 09:07 AM
|