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 is perl programming?

961


Write the program to process a list of numbers.

920


What are the benefits of perl in using it as a web-based application?

839


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

893


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

834


Show the use of sockets for the server and client side of a conversation?

828


what is the difference between java and cgi?

1005


How to remove a directory in perl?

913


What is a chomp() function in perl?

960


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

977


How can arrays be tied?

858


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

818


What is the function of virtual documents in cgi programs?

919


How to create a directory in perl?

995


How can I display all array element in which each element will display on next line in perl ?

864