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 is perl I used for?
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
What rules must be followed by modules in perl.
Difference between the variables in which chomp function work ?
How will you open a file in a write-only mode in perl?
You want to print the contents of an entire array. How would you do that?
Define dynamic scoping.
what are the strategies followed for multiple form interaction in cgi programs?
What is 'rollback' command in perl?
List the data types that Perl can handle?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
What are the different instances used in cgi overhead?
What is the use of 'ne' operator?
How do you set environment variables in perl?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.