Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.

Answer Posted / gopal

I hope this is the right way to match IP address

/((\d{1,3})(\.)){3}\d{1,3}/

Is This Answer Correct ?    12 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain gmtime() function in perl?

566


What is a perl references?

524


what are prefix dereferencer and list them out?

640


How interpreter is used in perl?

488


What are the various perl data types based on the context?

535






What are the various file operations in perl. Explain with example.

516


What is the use of -t?

548


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

484


How many types of variable in perl?

554


What is 'rollback' command in perl?

548


what is perl language?

513


How can you call a subroutine and identify a subroutine?

506


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

544


Can we load binary extension dynamically?

580


What is the difference between use and require in perl?

474