Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / tclgeek
{(^[1-9]|^[0-9][0-9]|^1[0-9][0-9]|^2[0-5][0-5])\.([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-5][0-5])\.([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-5][0-5])\.([0-9]$|[0-9][0-9]$|1[0-9][0-9]$|2[0-5][0-4]$)}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the various flags/arguments that can be used while executing a perl program?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
what is the function that is used to identify how many characters are there in a string?
How do I debug a perl program?
What is the syntax used in Perl grep function?
Which of these is a difference between Perl and C++ ?
How to create a directory in perl?
How to get help for perl?
Write a program that explains the symbolic table clearly.
How do I generate a list of all .html files in a directory?
What is the difference between single (') and double (") quote in a string in perl?
How can you create anonymous subroutines?
How do you turn on the perl warnings?
What is the peculiarity of returning values by subroutines in perl?
What are the two ways to get private values inside a subroutine?