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
Give an example of using the -n and -p option.
What does 'do' statement do in perl?
How do you you check the return code of a command in perl?
What is the use of "stderr()"?
How to access parameters passed to a subroutine in perl?
Explain gmtime() function in perl?
What does this symbol mean '->'?
What is perl scripting?
How many types of variable in perl?
What are the reasons that cookie server can’t handle multiple connections?
Explain ivalue in perl?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
How to get help for perl?
What is it meants by '$_'?
What is chomp() operator/function?