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
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 do I print the entire contents of an array with Perl?
Explain perl. When do you use perl for programming?
How do you you check the return code of a command in perl?
How to deleting an existing file in perl programming?
What does 'do' statement do in perl?
Explain the use of 'my' keyword in perl?
What is the difference between single (') and double (") quote in a string in perl?
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 lexical variable in perl?
What is grep used for in perl?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What is the closure in PERL?
How can information be put into hashes?
What is it meants by '$_'?