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 the difference between localtime() and gmtime() functions?
what is CPAN?
Create a function that is only available inside the scope where it is defined ?
What are perl variables?
What is perl scripting?
Write a program to decode the data in the form using cgi programming
What are the options that can be used to avoid logic errors in perl?
How the interpreter is used in Perl?
What is the use of -t?
Write a program to show the process of spawning a child process
Define perl scripting?
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?
Can you add two arrays together?
What is perl? What is the basic command to print a string in perl?
Explain a tell function in perl?