I hope you have a good REF. for regex commands O'Reilly's series book is the best I am told.
I do not have one for the IP address but I have email, zipcode, and phone Here are the strings for regex for the following // check the email fields for validity "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$" // check zipcodes for validity - but not the last 4 business digits "(^[0-9]{5})-([0-9]{4}$)", trim($zip_code)) && (!ereg("^[a-zA-Z][0-9][a-zA-Z][[:space:]][0-9][a-zA-Z][0-9]$" // check phone for validity "(^(.*)[0-9]{3})(.*)([0-9]{3})(.*)([0-9]{4}$)" ******************************************** Timothy Lungstrom Kracked Press Productions [EMAIL PROTECTED] ****************************************** ----- Original Message ----- From: "Janek Schleicher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 18, 2002 1:24 PM Subject: Re: how to make a regex for a ip address > Alex Chen wrote at Sun, 18 Aug 2002 17:14:21 +0200: > > > i am a beginners in perl.i am studying perl regex now ,and i want to know > > how to make a regex for a ip address. > > Have a look to the > Regexp::Common > module from the CPAN. > > $RE{net}{IPv4} contains the regexp to match an ip address. > > > Best Wishes, > Janek > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]