Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / mukesh
/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/
ip=$1;
Is This Answer Correct ? | 27 Yes | 20 No |
Post New Answer View All Answers
Why does Perl not have overloaded functions?
What are the two ways to get private values inside a subroutine?
What is chomp() operator/function?
what is the function of Return Value?
What is the easiest way to download the contents of a URL with Perl?
What are the advantages of c over Perl?
Write a cgi program to show the header part?
Explain the internal working of cgi
Explain what is the scalar data and scalar variables in Perl?
Which has the highest precedence, List or Terms? Explain?
What are the purpose of close(), getc() and read() functions?
Explain 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.
How to open a directory in perl?
Explain arrays in perl.