note 48695 deleted from reference.pcre.pattern.syntax by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 17:57:06 +0000 |
| Subject: | note 48695 deleted from reference.pcre.pattern.syntax by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127553@lists.php.net to get a copy of this message | ||
Note Submitter: pilot doofy at gmail d0t k0m
----
Keep in mind that when using limits whitespace doesn't count. I made this mistake quite often.
Remember the [[:space:]] character set. In example:
$string = "Wow php is really cool";
eregi("[[:alpha:]]{18}", $string); //returns true but
eregi("[[:alpha:]]{22}", $string); // does not return true because the whitespace
doesn't count for matches