Am 14.12.2012 18:54, schrieb Helmut Hullen:

how about the following match:

"^\d\d*\.\d\d*\.\d\d*\.\d\d*$"

So if the match pattern of the name attribute matches that pattern,
then it is an IP, else it is a host name match.

Aehemmm ... what about

         345.456.567.678


The pattern translated into human language:

Start - one digit - zero or more digits - one dot - one digit - zero or more digits - one dot - one digit - zero or more digits - end

Sure there will be a more sophisticated check needed to allow a maximum of three digits per field.

I have reported this very problem in a previous version, which was corrected, but it seems that this change has been reverted. I haven't reported it through the bug tracker, but through the mailing list, so it will be hard to find.


--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to