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?
Write the program to process a list of numbers.
What are the benefits of perl in using it as a web-based application?
You want to print the contents of an entire array. How would you do that?
Give an example of the -i and 0s option usage.
Show the use of sockets for the server and client side of a conversation?
what is the difference between java and cgi?
How to remove a directory in perl?
What is a chomp() function in perl?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
How can arrays be tied?
Which has highest precedence in between list and terms? Explain?
What is the function of virtual documents in cgi programs?
How to create a directory in perl?
How can I display all array element in which each element will display on next line in perl ?