Ben Forta

Errata

Learning Regular Expressions · ISBN 0672325667 · 30 corrections

Initial printing

Page Location Correction
24 Snippet starting “[ABCDEF” Final 0 should not be there
26 2nd line before NOTE, words: by the specified Should be: but the specified
33 3rd line from the bottom of the page. Should read: myArray\[[0-9]\], which is shorthand for myArray\[[0123456789]\].
41 2nd line before TIP, words: any digits Should be: any digit
44 Third paragraph: To demonstrate the use of + Should be: To demonstrate the use of *
45 Result code block. The period (.) before “ben” should not be highlighted.
46 Second line of body: But unlike + Should be: But unlike *
46 First line of body: Like + Should be: Like *
58 Second RegEx code block. Should read: cap\b
60 Line beginning “attributes”: <xml Should read: <?xml
60 Second note, sixth line, “opening ]”. Should read: opening [
70 ANALYSIS block refers to Lesson 3 for more on | This is incorrect, | is not introduced previously
72 RegEx to find IP addresses 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}))
88 Second Text block. Should contain no highlighted text.
95 Text of 2nd analysis block, words: Because there is $ Should be: Because there is no $
96 Last line, words “and negative lookahead”. Should read: and negative lookbehind.
102 First result block, third line The – should not be highlighted
106 Third bullet after the note, text “$’ returns everything after the matched string”. $’ should be $`.
114 Last bullet on page, text “$’ returns everything after the matched string”. $’ should be $`.
116 Line beginning java.util.rgex.matcher, opening words Should be: java.util.regex.Matcher
122 Result block, 3rd line. Highlight should be on “NW11 8AB”.
131 Credit card examples, Discover card Discover cards have 16 digits numbers, but the examples show 18 digits
131 First Result block. The MasterCard number should be highlighted.
133 First RegEx example Should be: 6011\d{12}
134 RegEx example: (6011\d{14}) Shoud be: (6011\d{12})
139 First column: ^ (carrot) Should be: ^ (caret)
139 ? in index, text: zero or more Should be: zero or one
143 ^ (carrot) Should be: ^ (caret)
153 Inside back cover, Quantifiers section, description of {n,}?. Should read: “Lazy version of {n,}”.
153 Inside back cover, Backreferences section, character ?!=. Should be: ?<! negative lookbehind
← Back to Learning Regular Expressions Submit errata for this book →