Skip to content

PHP Reference Book Blog

PHP Reference: Beginner to Intermediate PHP5

Get the Book

  • Purchase
  • Free PDF
  • ePub Format
  • HTML Version
  • Corrections

Post Categories

  • Author Notes (1)
  • Clarifications (4)
  • Corrections (10)
  • Miscellaneous (7)
  • Samples (4)
  • Tips (14)

Tags

$_GET $_SERVER addslashes alphanumeric array_key_exists carriage return define easy ebook Function functions global include include_once index isset kindle language construct MySQL mysql_real_escape_string new line newline PCRE PERL php php5 php errors precision preg preg_match preg_replace query string query_string regular expression regular expressions require require_once sample security simple sprintf sql injection tab tip variables

Tag: preg

RegEx PERL Compatible Character Class \w

(pg. 150)

Book version:

\w – Letter (a-z, A-Z)

Correct version:

\w – Letter, Digit, Underscore [a-zA-Z0-9_]

This is similar to the syntax for alphanumeric: [:alnum:]

Posted on May 30, 2008September 28, 2011Categories CorrectionsTags alphanumeric, PCRE, PERL, preg, preg_replace, regular expression, regular expressions
Proudly powered by WordPress