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 the peculiarity of returning values by subroutines in perl?

917


Write a program to decode the data in the form using cgi programming

1051


Explain about typeglobs?

944


What can be done for efficient parameter passing in perl? Explain.

1043


How can you replace the characters from a string and save the number of replacements?

898


You want to empty an array. How would you do that?

914


Why do you use Perl?

988


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

945


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

2401


What are the steps involved when the cgi program starts running?

921


How to replace perl array elements?

953


How does polymorphism work in perl?

922


You want to concatenate strings with perl. How would you do that?

880


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

953


What are the two ways to get private values inside a subroutine?

904