Try this regex for detecting an IPv4-compatible IPv6 address:

 ... =~  qr/^::FFFF:(\d{1,3}(\.\d{1,3}){3})$/i   ...

That should be more precise than strchr(...,'.');  $1 should be the IPv4 
address that was extracted.



_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to