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

Answer Posted / sanjiv

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

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a script to reverse a string without using perl's built in functions?

508


What is subroutine in perl?

533


What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?

554


What is the usage of -i and 0s options?

551


What is the use of -t?

552






What exactly is grooving and shortening of the array?

594


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

631


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

530


Explain grooving and shortening of arrays and splicing of arrays?

506


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??

1763


Does Perl have reference type?

529


What does the qq{ } operator do?

554


What is the purpose of redo statement?

531


Explain what is lvalue?

609


what are the two ways to get private values inside a subroutine or block?

513