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
What is the purpose of _package_ literal?
how to connect cisco switch uisng perl script
What is the use of -w, -t and strict in Perl?
How to concatenate strings with perl?
Explain perl. When do you use perl for programming?
What is the main function of cookie server?
Give an example of the -i and 0s option usage.
What is it meants by '$_'?
Why aren't Perl's patterns regular expressions?
What is the difference between perl list and perl array?
How to create a package?
What is the purpose of goto expr statement?
How can memory be managed in Perl?
What is the function of virtual documents in cgi programs?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?