Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to implement a stack in Perl?

1035


Give an example of using the -n and -p option.

1014


Explain goto label, goto name, and goto expr?

927


List the operator used in Perl?

988


What is use of ‘->’ symbol?

1017


What is the difference between single (') and double (") quote in a string in perl?

1021


what are prefix dereferencer and list them out?

1044


How do find the length of an array?

1142


What is the use of -n and -p options?

1077


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

951


how to get back up from private character editor which is saved in the format of .udf

2301


Explain 'grep' function.

993


How many data types are there in perl?

973


What is the use of 'ne' operator?

1018


What is the function of cgiwrap in cgi programming?

931