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

Below Solution is applicable IP only :

(/(\d{1,})\.(\d{1,})\.(\d{1,})\.(\d{1,})/ && $1<256 &&
$2<256 && $3<256 && $4<256)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scalars in perl?

964


What is perl scripting?

941


What are the purpose of close(), getc() and read() functions?

884


Explain USE and REQUIREMENT statements?

930


What are some of the key features of objects in perl?

944


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

891


How many types of operators are used in the Perl?

1035


What can be done for efficient parameter passing in perl?

894


What are the different types of perl operators?

1075


How will you create a file in perl?

991


How to add elements in a hash in perl?

926


What is perl shift array function?

965


What is q (single q) operator in perl?

1093


Write an example explaining the use of symbol tables.

961


Explain perl.

945