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 advantages and disadvantages of perl language?
You want to open and read data files with perl. How would you do that?
What is confess function in perl?
What is the use of -t?
Explain grooving and shortening of arrays and splicing of arrays?
Why aren't Perl's patterns regular expressions?
What is the syntax used in Perl grep function?
Define perl scripting?
What is automatic error handling in perl?
How to code in perl to implement the tail function in unix?
What interface used in PERL to connect to database? How do you connect to database in Perl?
List the operator used in Perl?
What is it meants by '$_'?
Show the use of sockets for the server and client side of a conversation?
What are the benefits of perl in using it as a web-based application?