Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / abhishek sagar
(/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/ && $1 < 255 &&
$2 < 255 && $3 < 255 && $4 < 255 )
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
Explain what is the scalar data and scalar variables in Perl?
What happens when you return a reference to a private variable?
What are the various flags/arguments that can be used while executing a perl program?
How can you use Perl warnings and what is the importance to use them?
Create a function that is only available inside the scope where it is defined ?
What's the difference between /^Foo/s and /^Foo/?
Explain goto expr?
Define operators used in perl?
Give an example of using the -n and -p option.
What are the advantages of perl programming?
What are the various uses of perl?
What is the usage of -i and 0s options?
Define say() function in perl?
You want to open and read data files with perl. How would you do that?
What is perl programming?