Simple regexp
| From: | Adam Alkins | Date: | Wed, 28 Aug 2002 18:05:48 +0000 |
| Subject: | Simple regexp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114403@lists.php.net to get a copy of this message | ||
Hi Folks,
Seeking some guidance here. My regexp knowledge is pathetic. I want to do a simple validation of an
ipv6 address. I just want to validate the entire string (not specific blocks) if it has the allowed
charachters.
I though ereg('[A-Fa-f0-9:]') would work, but it isn't. Anyone can help me with this?
IPv6 addresses are just Hex with : characters, so I just need to validate that for the entire
string.
Thanks for your time.
--------------
Adam Alkins
http://www.rasadam.com
--------------