Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / arup
Below Solution is applicable IP only :
(/(\d{1,})\.(\d{1,})\.(\d{1,})\.(\d{1,})/ && $1<256 &&
$2<256 && $3<256 && $4<256)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are scalars in perl?
What is perl scripting?
What are the purpose of close(), getc() and read() functions?
Explain USE and REQUIREMENT statements?
What are some of the key features of objects in perl?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
How many types of operators are used in the Perl?
What can be done for efficient parameter passing in perl?
What are the different types of perl operators?
How will you create a file in perl?
How to add elements in a hash in perl?
What is perl shift array function?
What is q (single q) operator in perl?
Write an example explaining the use of symbol tables.
Explain perl.