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 internal working of cgi
Explain grooving and shortening of arrays and splicing of arrays?
How can information be put into hashes?
Explain the use of 'my' keyword in perl?
What are the logical operators used for small scale operations?
How to convert arrays into a string in perl?
What is q (single q) operator in perl?
How to change a directory in perl?
what is the function of Return Value?
Which has highest precedence in between list and terms? Explain?
How to read a directory in perl?
How to add elements in a hash in perl?
How do I pass a command line argument in perl?
“Perl regular expressions match the longest string possible”. What is the name of this match?
You want to empty an array. How would you do that?