List of Tables

2.1 Telephone number formats we wish to find with a regex. Here d stands for a digit 0 through 9.

2.2 Telephone number input to test regular expression 2.2.

2.3 Summary of some of the special characters used by regular expressions with examples of strings that match.

2.4 Removing punctuation: a sample of five mistakes made by program 2.4.

2.5 Some values of the Perl variable $1 and their effects.

2.6 A variety of ways of combining two short sentences.

2.7 Sentence segmentation by program 2.8 fails for this sentence.

2.8 Defining true and false in Perl.

3.1 Comparison of arrays and hashes in Perl.

4.1 Proportions of the letter e for 68 Poe short stories, sorted smallest to largest.

4.2 Two intervals for the proportion of e’s in Poe’s short stories using table 4.1.

4.3 Counts of four-letter words satisfying each pair of conditions. For problem 4.5.

Get Practical Text Mining with Perl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.