March 2012
Intermediate to advanced
392 pages
10h 17m
English
Now that you have a basic concept of how regular expressions are used, let’s look at how regular expressions can make your job as a webbot developer a little easier.
Let’s assume that you need to write a parsing program that retrieves all the phone numbers on a web page. The first step is to think about the formats that phone numbers may take. This sounds easy, but you might want to consider these questions:
Do you want to include toll-free phone numbers?
Are you targeting phone numbers from a particular country?
What do you do with multiple copies of the same phone number?
Do you want to include country codes?
How do you want to deal with alpha characters in phone ...
Read now
Unlock full access