Blogspot - php-regex.blogspot.com - PHP Regular Expression Tutorial
General Information:
Latest News:
MySQL Regular Expressions Cheat Sheet 21 Jan 2008 | 08:18 am
MySQL Regular Expressions Regular Expressions in MySQL are used within the REGEXP and RLIKE sections of WHERE clauses in the selection of records for display, update or deletion. They use Henry Spenc...
POSIX Character Class Definitions 21 Jan 2008 | 08:03 am
POSIX Character Class Definitions Value Meaning [:digit:] Only the digits 0 to 9 [:alnum:] Any alphanumeric character 0 to 9 OR A to Z or a to z. [:alpha:] Any alpha character A to Z or a to z...
ereg_replace — Replace regular expression 21 Jan 2008 | 06:28 am
ereg_replace — Replace regular expression This function scans string for matches to pattern , then replaces the matched text with replacement string ereg_replace ( string $pattern , string $replacemen...
eregi — Case insensitive regular expression match 21 Jan 2008 | 04:59 am
eregi — Case insensitive regular expression match This function is identical to ereg() except that it ignores case distinction when matching alphabetic characters. int eregi ( string $pattern , string...
ereg — Regular expression match 21 Jan 2008 | 04:35 am
ereg — Regular expression match Searches a string for matches to the regular expression given in pattern in a case-sensitive way. int ereg ( string $pattern , string $string [, array &$regs ] ) patte...
PHP Regex Cheat Sheet 20 Jan 2008 | 08:36 pm
Special Sequences \w - Any “word” character (a-z 0-9 _) \W - Any non “word” character \s - Whitespace (space, tab CRLF) \S - Any non whitepsace character \d - Digits (0-9) \D - Any non digit cha...
How To Negate a Character Class 19 Jan 2008 | 12:10 am
Using the ^ ('carrot') to negate a character class: Metacharacters [] denote a "character class". Within a 'character class' you can have what is called a 'range', which I have been using in the exam...
Introduction to Regular Expressions in PHP 18 Jan 2008 | 11:17 pm
Introduction to Regular Expressions in PHP Regular expressions were created by an American mathematician named Stephen Kleene. PHP supports two different types of regular expressions: POSIX-extended ...