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


Please Help Members By Posting Answers For Below Questions

Why does Perl not have overloaded functions?

537


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

455


What is chomp() operator/function?

566


what is the function of Return Value?

569


What is the easiest way to download the contents of a URL with Perl?

564






What are the advantages of c over Perl?

527


Write a cgi program to show the header part?

526


Explain the internal working of cgi

512


Explain what is the scalar data and scalar variables in Perl?

569


Which has the highest precedence, List or Terms? Explain?

493


What are the purpose of close(), getc() and read() functions?

484


Explain perl.

556


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.

1800


How to open a directory in perl?

545


Explain arrays in perl.

522