laravel/laravel — pull request #1366 by decola977 (2012-10-18 11:18:10+00:00)
Title: Patch 3

Some speed optimization.

"It should be noted that ctype functions are always preferred over regular expressions, and even to some equivalent "str_*" and "is_*" functions. This is because of the fact that ctype uses a native C library and thus processes significantly faster."

http://php.net/manual/en/intro.ctype.php