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 replace every character in a file with a comma?
What is “grep” function in perl?
what is perl language?
What are some common methods to all handles in perl?
What are numeric operators in perl?
What is the use of command “use strict”?
Explain different types of perl operators.
Is perl a case sensitive language?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
How can you call a subroutine and identify a subroutine?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Explain goto name?
How will you access an element of a perl array?
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?
Write syntax to use grep function?