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
Explain what is STDIN, STDOUT and STDERR?
Write a script to reverse a string without using perl's built in functions?
Explain the meaning of subroutine?
What does the qq{ } operator do?
List the prefix dereferencer in Perl.
How to code in perl to implement the tail function in unix?
What is perl I used for?
What does cgi program store?
How can you create anonymous subroutines?
Explain ivalue in perl?
What is the purpose of goto expr statement?
What are perl strings?
What does the qx{ } operator do?
How interpreter is used in perl?
How many data types are there in perl?