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 are the different instances used in cgi overhead?
How to get help for perl?
What is subroutine in perl?
What is an interpolation in perl?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
Explain the use of 'my' keyword in perl?
What are hashes?
What can be done for efficient parameter passing in perl?
How to connect to SQL server through Perl?
Can inheritance be used in perl? Explain with the help of an example.
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Explain about typeglobs?
What are the logical operators used for small scale operations? Explain them briefly.
Explain subroutine in perl?