Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / mukesh
/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/
ip=$1;
| Is This Answer Correct ? | 27 Yes | 20 No |
Post New Answer View All Answers
How do I pass a command line argument in perl?
Explain what is perl language?
How will you open a file in a write-only mode in perl?
Write syntax to use grep function?
What is qq (double q)operator in perl?
What does the’$_’ symbol mean?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
Explain what is lvalue?
What is perl push array function?
Mention the difference between die and exit in Perl?
What is the purpose of redo statement?
What are the advantages of programming in perl?
What is the use of -w, -t and strict in Perl?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
How to access parameters passed to a subroutine in perl?