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 does polymorphism work in perl? Give an example.
What is perl programming?
How can you call a subroutine and identify a subroutine?
How to determine strings length in perl?
How to merge two arrays in perl?
Why -w argument is used with perl programs?
Does Perl have objects? If yes, then does it force you to use objects? If no, then why?
What can be done for efficient parameter passing in perl?
Write syntax to add two arrays together in perl?
What is perl? What is the basic command to print a string in perl?
List the data types that Perl can handle?
You want to empty an array. How would you do that?
What does the q{ } operator do?
Write a cgi program to show the header part?
What are scalars?