Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / abhishek sagar
(/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/ && $1 < 255 &&
$2 < 255 && $3 < 255 && $4 < 255 )
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
How do I debug a perl program?
What is the purpose of _package_ literal?
What is epoch time in perl?
When does circular reference occur?
What does 'do' statement do in perl?
What is cpan ? What are the modules coming under this?
how to connect cisco switch uisng perl script
what is Polymorphism in Perl?
How will you open a file in read-only mode in perl?
How do you you check the return code of a command in perl?
Explain '->' in perl?
How to open a directory in perl?
What does undef function in perl?
Show the use of sockets for the server and client side of a conversation?
Explain the meaning of perl one-liner?