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

Explain the internal working of cgi

910


Explain grooving and shortening of arrays and splicing of arrays?

882


How can information be put into hashes?

954


Explain the use of 'my' keyword in perl?

994


What are the logical operators used for small scale operations?

947


How to convert arrays into a string in perl?

922


What is q (single q) operator in perl?

1068


How to change a directory in perl?

911


what is the function of Return Value?

1046


Which has highest precedence in between list and terms? Explain?

852


How to read a directory in perl?

1002


How to add elements in a hash in perl?

906


How do I pass a command line argument in perl?

953


“Perl regular expressions match the longest string possible”. What is the name of this match?

925


You want to empty an array. How would you do that?

889