Errata

Regular Expression Pocket Reference

Errata for Regular Expression Pocket Reference

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 16
table 6, left column

The second "(?mode:...)" NOW READS "(?-mode:...)"

Anonymous    Sep 01, 2004
Printed
Page 16
table 6, left column

The second "(?mode:...)" NOW READS "(?-mode:...)"

Anonymous    Sep 01, 2004
Printed
Page 19
Table 8, next-to-last entry ($*)

"m" NOW READS "/m"
"s" NOW READS "/s"

Anonymous    Sep 01, 2004
Printed
Page 19
Table 8, next-to-last entry ($*)

"m" NOW READS "/m"
"s" NOW READS "/s"

Anonymous    Sep 01, 2004
Printed
Page 21
line2,

$text= "Check the website, http://www.oreilly.com/catalog/repr."

NOW READS:
$text= "Check the website, http://www.oreilly.com/catalog/9780596528997."


Anonymous    Sep 01, 2004
Printed
Page 21
line2,

$text= "Check the website, http://www.oreilly.com/catalog/repr."

NOW READS:
$text= "Check the website, http://www.oreilly.com/catalog/9780596528997."


Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 49
2nd list entry (end())

"(or start of..."

NOW READS:
"(or end of...)"

Anonymous    Sep 01, 2004
Printed
Page 49
2nd list entry (end())

"(or start of..."

NOW READS:
"(or end of...)"

Anonymous    Sep 01, 2004
Printed
Page 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.'

Anonymous    Sep 01, 2004
Printed
Page 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.'

Anonymous    Sep 01, 2004
Printed
Page 51
example 16:

The semi-colon after re.VERBOSE) HAS BEEN DELETED.

Anonymous    Sep 01, 2004
Printed
Page 51
example 16:

The semi-colon after re.VERBOSE) HAS BEEN DELETED.

Anonymous    Sep 01, 2004
Printed
Page 54
Table 29, left column

The second "(?mode:...)"

NOW READS:
"(?-mode:...)"

Anonymous    Sep 01, 2004
Printed
Page 54
Table 29, left column

The second "(?mode:...)"

NOW READS:
"(?-mode:...)"

Anonymous    Sep 01, 2004
Printed
Page 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.

Anonymous    Sep 01, 2004
Printed
Page 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.

Anonymous    Sep 01, 2004
Printed
Page 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"

Anonymous    Sep 01, 2004
Printed
Page 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"

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 71
the 4 lines after the first U HAVE BEEN DELETED.

Anonymous    Sep 01, 2004
Printed
Page 71
the 4 lines after the first U HAVE BEEN DELETED.

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 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."

Anonymous    Sep 01, 2004
Printed
Page 87
left column, 4th index entry

The entry NOW READS "(?:...) subexpression grouping",
rather than being split into main and subentries, as it was previously.

Anonymous    Sep 01, 2004
Printed
Page 87
left column, 4th index entry

The entry NOW READS "(?:...) subexpression grouping",
rather than being split into main and subentries, as it was previously.

Anonymous    Sep 01, 2004