[TYPO3-core] RFC #9994: Bug: ereg_replace is deprecated in PHP 5.3 alpha3

Niels Pardon mail at niels-pardon.de
Tue Dec 30 09:50:30 CET 2008


Hi Olly!

Oliver Hader schrieb:
> There's one difference between [:alnum:] and \w:
> * [:alnum:] is 0..9, A..Z, a..z
> * \w is 0..9, A..Z, a..z and _ (underscore)

You're right. [:alnum:] does not contain the underscore whereas \w does.

I was not sure whether a character class [A-Za-z0-9] would be a good
replacement as [:alnum:] can contain language specific characters
(depending on the locale) which are included in \w, too.

Greets,

Niels


More information about the TYPO3-team-core mailing list