Significant speed gains can be made by replacing regular expression with one or more string functions
offered by PHP.
- • Replacement - str_replace, substr_replace, strtr, etc...
- • Matching - strpos, stripos, strchr, strrchr, etc..
- • Type Checking - ctype extension (enabled by default)
- • Comparison - strcmp, strncasecmp, etc...