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
How to implement a stack in Perl?
Give an example of using the -n and -p option.
Explain goto label, goto name, and goto expr?
List the operator used in Perl?
What is use of ‘->’ symbol?
What is the difference between single (') and double (") quote in a string in perl?
what are prefix dereferencer and list them out?
How do find the length of an array?
What is the use of -n and -p options?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
how to get back up from private character editor which is saved in the format of .udf
Explain 'grep' function.
How many data types are there in perl?
What is the use of 'ne' operator?
What is the function of cgiwrap in cgi programming?