PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello. I have a regular expression (pretty good one I might add), but it has one downfall: it does not match a port number, in fact, it negates the whole email if there is a port number. Eg, it will match "admin@vagonweb.com", but not "admin@vagonweb.com:25". How can I add that support? Mind, the port is very optional, and I want it to match the string even if I have no port. Here's the regular expression:
yeah.. I thought about it for a bit.. and had to impose the port numbering restrictions.. although it may need to go to 65536, hmm... According to this [auditmypc.com] the range is 0-65535.. ok.