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 debug a perl program?

994


What is the purpose of _package_ literal?

1043


What is epoch time in perl?

946


When does circular reference occur?

919


What does 'do' statement do in perl?

1004


What is cpan ? What are the modules coming under this?

930


how to connect cisco switch uisng perl script

3851


what is Polymorphism in Perl?

973


How will you open a file in read-only mode in perl?

912


How do you you check the return code of a command in perl?

991


Explain '->' in perl?

935


How to open a directory in perl?

1119


What does undef function in perl?

955


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

895


Explain the meaning of perl one-liner?

1068