Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / vyvyan
ip_pattern = r'\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b'
Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
Define print() function in perl?
what are the steps involved in reading a cgi script on the server?
How do I debug a perl program?
how to connect cisco switch uisng perl script
How to convert strings into an array in perl?
You want to add two arrays together. How would you do that?
How to read a single line from a file in perl?
How to close a file in perl?
Explain returning values from subroutines?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
What is goto statement in perl?
Write syntax to add two arrays together in perl?
How to read from a pipeline with Perl
What are the various uses of perl?