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

Explain returning values from subroutines?

996


In Perl, what is grep function used for?

1129


You want to print the contents of an entire array. How would you do that?

1014


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

923


What are arrays in perl?

1012


What is perl scripting?

988


How to access parameters passed to a subroutine in perl?

1008


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1190


What does perl do in linux?

985


What is the difference between exec and system?

1149


What are some common methods to all handles in perl?

972


What is the difference between use and require in perl?

913


How to start perl in interactive mode?

1104


How to replace perl array elements?

984


what is the main function of fork() in cgi programming?

1210