Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / raghav
For IP Address
/([0-255])(\.)$1\1$1\1$1/;
For other question answer may vary depending on the
requirement.
| Is This Answer Correct ? | 22 Yes | 31 No |
Post New Answer View All Answers
What is -> symbol in perl?
How to print escaping characters inside a string in perl?
What is the difference between exec and system?
what is the function of Return Value?
Give an example of the -i and 0s option usage.
Why aren't Perl's patterns regular expressions?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
What is grep used for in perl?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
Enlist the advantages of using c over perl?
What do you mean by context of a subroutine?
What is the easiest way to download the contents of a URL with Perl?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
Why do you use Perl?
Explain about typeglobs?