Books

Sams Teach Yourself Regular Expressions in 10 Minutes

  • ISBN: 0672325667
  • Pages: 150
  • Publisher: Sams - February 28, 2004

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 specified
Error: 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 digits
Error: 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 58

Location: Second RegEx code block.
Error: Should read: cap\b

Page 60

Location: Second note, sixth line, "opening ]".
Error: Should read: opening [
Location: Line beginning "attributes": <xml
Error: Should read: <?xml

Page 70

Location: ANALYSIS block refers to Lesson 3 for more on |
Error: This is incorrect, | is not introduced previously

Page 72

Location: RegEx to find IP addresses
Error: Should be: (((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))\.){3}((1\d{2})|(2[0-4]\d)|(25[0-5])|(\d{1,2}))

Page 88

Location: Second Text block.
Error: Should contain no highlighted text.

Page 95

Location: Text of 2nd analysis block, words: Because there is $
Error: Should be: Because there is no $

Page 96

Location: Last line, words "and negative lookahead".
Error: Should read: and negative lookbehind.

Page 102

Location: First result block, third line
Error: The - should not be highlighted

Page 106

Location: Third bullet after the note, text "$' returns everything after the matched string".
Error: $' should be $`.

Page 114

Location: Last bullet on page, text "$' returns everything after the matched string".
Error: $' should be $`.

Page 116

Location: Line beginning java.util.rgex.matcher, opening words
Error: Should be: java.util.regex.Matcher

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 card
Error: Discover cards have 16 digits numbers, but the examples show 18 digits

Page 133

Location: First RegEx example
Error: 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 more
Error: Should be: zero or one

Page 143

Location: ^ (carrot)
Error: Should be: ^ (caret)

Page 153

Location: Inside back cover, Backreferences section, character ?!=.
Error: Should be: ?<! negative lookbehind
Location: Inside back cover, Quantifiers section, description of {n,}?.
Error: Should read: "Lazy version of {n,}".

Back to Book Information