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 / abhishek sagar

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

Is This Answer Correct ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is STDIN, STDOUT and STDERR?

990


Write a script to reverse a string without using perl's built in functions?

944


Explain the meaning of subroutine?

923


What does the qq{ } operator do?

902


List the prefix dereferencer in Perl.

894


How to code in perl to implement the tail function in unix?

897


What is perl I used for?

927


What does cgi program store?

864


How can you create anonymous subroutines?

883


Explain ivalue in perl?

927


What is the purpose of goto expr statement?

858


What are perl strings?

856


What does the qx{ } operator do?

871


How interpreter is used in perl?

911


How many data types are there in perl?

922