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

How do I replace every character in a file with a comma?

922


What is “grep” function in perl?

939


what is perl language?

878


What are some common methods to all handles in perl?

885


What are numeric operators in perl?

900


What is the use of command “use strict”?

950


Explain different types of perl operators.

879


Is perl a case sensitive language?

1047


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

926


How can you call a subroutine and identify a subroutine?

938


“Perl regular expressions match the longest string possible”. What is the name of this match?

893


Explain goto name?

871


How will you access an element of a perl array?

886


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

941


Write syntax to use grep function?

909