At 11:42 PM +0530 4/9/11, Sunita Rani Pradhan wrote:
Hi All1. Can anybody guide me to write a regular expression to verify correct Email address ?
peldoc -q valid "How do I check a valid mail address?"
2. I have written a regular expression to verify correct IP address : print $ipadd if ($ipadd =~ /^([0-9])|([1-9][0-9])|([1-2][0-5][0-5])\.([0-9])|([1-9][0-9])|([1-2][0- 5][0-5])\.([0-9])|([1-9][0-9])|([1-2][0-5][0-5])\.([0-9])|([1-9][0-9])|( [1-2][0-5][0-5])/); It is working as per my input . Please let me know if it correct or not .
I don't believe it is correct. Does it match 167.249.0.0? -- Jim Gibson [email protected] -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
