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?

1003


You want to add two arrays together. How would you do that?

858


Which functions in perl allows you to include a module file. State their differences.

928


How can you call a subroutine and identify a subroutine?

972


Explain goto expr?

852


Mention the difference between die and exit in Perl?

1092


Explain string comparison operators in perl.

993


What are some common methods to all handles in perl?

904


How do I debug a perl program?

965


How to create a package?

939


How do you give functions private variables that retain their values between calls?

928


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

889


Explain lists in perl?

956


What is “grep” function in perl?

981


How to sort arrays in perl?

1012