Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / gopal
I hope this is the right way to match IP address
/((\d{1,3})(\.)){3}\d{1,3}/
| Is This Answer Correct ? | 12 Yes | 24 No |
Post New Answer View All Answers
What are the arguements we normally use for perl interpreter?
How the interpreter is used in Perl?
What is grep used for in perl?
What does delete function do in perl?
Explain split function in perl?
you are required to replace a char in a string and store the number of replacements. How would you do that?
Define print() function in perl?
Explain what is the scalar data and scalar variables in Perl?
Demonstrate subroutines in perl with a simple example.
What are the steps involved in configuring a server using cgi programming?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
What does redo statement do in perl?
What are the advantages of perl programming?
How do I do fill_in_the_blank for each file in a directory?
What is the difference between exec and system?