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 / tclgeek

{(^[1-9]|^[0-9][0-9]|^1[0-9][0-9]|^2[0-5][0-5])\.([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-5][0-5])\.([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-5][0-5])\.([0-9]$|[0-9][0-9]$|1[0-9][0-9]$|2[0-5][0-4]$)}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various flags/arguments that can be used while executing a perl program?

816


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

977


what is the function that is used to identify how many characters are there in a string?

909


How do I debug a perl program?

935


What is the syntax used in Perl grep function?

966


Which of these is a difference between Perl and C++ ?

966


How to create a directory in perl?

995


How to get help for perl?

938


Write a program that explains the symbolic table clearly.

913


How do I generate a list of all .html files in a directory?

900


What is the difference between single (') and double (") quote in a string in perl?

907


How can you create anonymous subroutines?

866


How do you turn on the perl warnings?

860


What is the peculiarity of returning values by subroutines in perl?

855


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

824