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 / raghav

For IP Address

/([0-255])(\.)$1\1$1\1$1/;

For other question answer may vary depending on the
requirement.

Is This Answer Correct ?    22 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is -> symbol in perl?

988


How to print escaping characters inside a string in perl?

887


What is the difference between exec and system?

1064


what is the function of Return Value?

1048


Give an example of the -i and 0s option usage.

882


Why aren't Perl's patterns regular expressions?

1143


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2222


What is grep used for in perl?

911


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

2220


Enlist the advantages of using c over perl?

902


What do you mean by context of a subroutine?

963


What is the easiest way to download the contents of a URL with Perl?

933


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

983


Why do you use Perl?

963


Explain about typeglobs?

916