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
Differences between die and exit.
Which feature of perl provides code reusability?
What is a chomp() function in perl?
Why we use CGI?
Write a program to decode the data in the form using cgi programming
What is the difference between single (') and double (") quote in a string in perl?
Give an example of using the -n and -p option.
What are the features of perl language?
Explain 'grep' function.
What are the various uses of perl?
Show the use of sockets for the server and client side of a conversation?
What does `$result = f() .. g()' really return?
How to read file into hash array ?
What can be done for efficient parameter passing in perl? Explain.
How can memory be managed in Perl?