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 is perl programming?
You want to add two arrays together. How would you do that?
Which functions in perl allows you to include a module file. State their differences.
How can you call a subroutine and identify a subroutine?
Explain goto expr?
Mention the difference between die and exit in Perl?
Explain string comparison operators in perl.
What are some common methods to all handles in perl?
How do I debug a perl program?
How to create a package?
How do you give functions private variables that retain their values between calls?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
Explain lists in perl?
What is “grep” function in perl?
How to sort arrays in perl?