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
Explain chomp?
What is the usage of -i and 0s options?
Differentiate between use and require, my and local, for and foreach and exec and system
What is warn function in perl?
What is perl I used for?
what is the function of Return Value?
How do you set environment variables in perl?
Explain the various characteristics of perl.
How do I replace every character in a file with a comma?
What is epoch time in perl?
What are the various perl data types based on the context?
Explain cpan?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
Explain which feature of PERL provides code reusability?
Explain the difference between "my" and "local" variable scope declarations. ?