Hallo, Stefan, Du meintest am 15.12.12:
>>> 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. Max. 3 digits is one problem. The (for IP addresses) allowed range is the other problem. Viele Gruesse! Helmut ------------------------------------------------------------------------- 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