Books

Sams Teach Yourself Regular Expressions in 10 Minutes

As much as I'd like to be able to produce completely error free books, the reality of the computer publishing industry is that the pace at which books must be written and released makes this very difficult. And regretfully, my own books do have sporadic mistakes and typos scattered throughout them.

For the benefit of my readers, here is a current errata for Sams Teach Yourself Regular Expressions in 10 Minutes. Feel free to print this page for future reference.

And as always, if you come across errors that I do not know about, please let me know. I'll make sure they are added to this list, and will try to have them corrected in future reprints.

Page 24

Location: Snippet starting "[ABCDEF"Error: Final 0 should not be there

Page 26

Location: 2nd line before NOTE, words: by the specifiedError: Should be: but the specified

Page 33

Location: 3rd line from the bottom of the page.Error: Should read: myArray\[[0-9]\], which is shorthand for myArray\[[0123456789]\].

Page 41

Location: 2nd line before TIP, words: any digitsError: Should be: any digit

Page 44

Location: Third paragraph: To demonstrate the use of +Error: Should be: To demonstrate the use of *

Page 45

Location: Result code block.Error: The period (.) before "ben" should not be highlighted.

Page 46

Location: First line of body: Like +Error: Should be: Like *Location: Second line of body: But unlike +Error: Should be: But unlike *

Page 116

Page 122

Location: Result block, 3rd line.Error: Highlight should be on "NW11 8AB".

Page 131

Location: First Result block.Error: The MasterCard number should be highlighted.Location: Credit card examples, Discover cardError: Discover cards have 16 digits numbers, but the examples show 18 digits

Page 133

Location: First RegEx exampleError: Should be: 6011\d{12}

Page 134

Location: RegEx example: (6011\d{14})Error: Shoud be: (6011\d{12})

Page 139

Location: First column: ^ (carrot)Error: Should be: ^ (caret)Location: ? in index, text: zero or moreError: Should be: zero or one