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

Answer Posted / leo

/(\d+)(\.\d+){3}/)

Is This Answer Correct ?    4 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are arrays in perl?

565


What syntax is used for grep() function?

571


Explain splicing of arrays?

526


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

576


Explain socket programming in perl?

510






What does this symbol mean '->'?

537


How to concatenate strings in perl?

590


Why to use perl scripting?

525


Where do we require ‘chomp’ and what does it mean?

518


What are the different ways to run cgi?

491


how to get back up from private character editor which is saved in the format of .udf

1845


What is the purpose of goto expr statement?

480


What is warn function in perl?

533


What are the various advantages and disadvantages of perl?

469


How will you open a file in a write-only mode in perl?

480