Regular Expression Pocket Reference by Tony Stubblebine The following errata were *corrected* in the 9/04 reprint: Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem (6), Class shorthands The list of the names of the shorthands ("digit, word character, and space character classes") HAVE BEEN CHANGED so it is in the same order as the list of the shorthands ("\w, \d, \s"). Thus, the first sentence NOW READS: "Commonly provided shorthands for word character, digit, and space charcter classes." (16), table 6, left column The second "(?mode:...)" NOW READS "(?-mode:...)" (19), Table 8, next-to-last entry ($*) "\m" NOW READS "/m" "\s" NOW READS "/s" (21) line2, $text= "Check the website, http://www.oreilly.com/catalog/repr." NOW READS: $text= "Check the website, http://www.oreilly.com/catalog/9780596528997." (31) 6th line of Example 8 String text = "Check the website, http://www.oreilly.com/catalog/repr." NOW READS: String text = "Check the website, http://www.oreilly.com/catalog/9780596528997." (42) 8th line of Example 12 string text = "Check the website, http://www.oreilly.com/catalog/repr." NOW READS: string text = "Check the website, http://www.oreilly.com/catalog/9780596528997." (49) 2nd list entry (end()) "(or start of..." NOW READS: "(or end of...)" (50) 4th line of Example 16 text = 'Check the website, http://www.oreilly.com/catalog/repr.' NOW READS: text = 'Check the website, http://www.oreilly.com/catalog/9780596528997.' (51) example 16: The semi-colon after re.VERBOSE) HAS BEEN DELETED. (54) Table 29, left column The second "(?mode:...)" NOW READS: "(?-mode:...)" (66) last list entry (int preg_match_all ()) (first line of the description) Search for all matches of pattern against string and... NOW READS: Search for all matches of pattern against subject and... and (last line on the page) ...capture group in the fourth match of pattern in string. NOW READS: ...capture group in the fourth match of pattern in subject. (67) last list entry (preg_replace_callback function) The sentence "If pattern has the /e modifier, replacement is parsed for reference substitution and then executed as PHP code" HAS BEEN DELETED. 68, 2nd list entry (array preg_split ()) "A limit" NOW READS: "A limit of -1" (69) 2nd line of Example 22 $text = "Check the website, http://www.oreilly.com/catalog/repr." NOW READS: $text = "Check the website, http://www.oreilly.com/catalog/9780596528997." (71) the 4 lines after the first \U HAVE BEEN DELETED. (81) 2nd line of Example 31 var text = "Check the website, http://www.oreilly.com/catalog/repr." NOW READS: var text = "Check the website, http://www.oreilly.com/catalog/9780596528997." (87) left column, 4th index entry The entry NOW READS "(?:...) subexpression grouping", rather than being split into main and subentries, as it was previously.