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 various uses of perl?
How do I do fill_in_the_blank for each file in a directory?
How to read a directory in perl?
If you want to empty an array then how would you do that?
What are prefix dereferencer? List them.
How does polymorphism work in perl? Give an example.
List the prefix dereferencer in Perl.
How do you match one letter in the current locale?
Explain about the applications of perl?
Explain gmtime() function in perl?
How to access parameters passed to a subroutine in perl?
What are scalars?
Which operator in perl is used for the concatenation of two strings?
You want to open and read data files with perl. How would you do that?
What are the purpose of close(), getc() and read() functions?