Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / raghav
For IP Address
/([0-255])(\.)$1\1$1\1$1/;
For other question answer may vary depending on the
requirement.
| Is This Answer Correct ? | 22 Yes | 31 No |
Post New Answer View All Answers
What are hashes?
What is q (single q) operator in perl?
what is the difference between java and cgi?
How will you open a file in read-only mode in perl?
How do you turn on the perl warnings?
How can you create anonymous subroutines?
What is the importance of perl warnings?
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 ?"
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
What is the purpose of goto expr statement?
What are the features of perl language?
What are the steps involved in configuring a server using cgi programming?
You want to connect to sql server through perl. How would you do that?
Explain substr function in perl?