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
How do I replace every character in a file with a comma?
How will you create a file in perl?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
Define operators used in perl?
How to concatenate strings in perl?
What are the arguements we normally use for perl interpreter?
How do you find the length of an array?
Why should I use the -w argument with my Perl programs?
how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.
Explain lists in perl?
what is the function that is used to identify how many characters are there in a string?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
What is the difference between exec and system?
How will you declare a variable in perl?
Explain splicing of arrays?