[TYPO3-core] FYI: Fixed bug #11451: Wrong pattern modifier in t3lib_htmlmail

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 7 17:50:25 CEST 2009


Andy Grunwald [wmdb] schrieb:
> 
> +1 by reading
> 
> you could always use () as delimiter.
> For example:
> preg_match('((.*/)(.*)$)', $fileref, $reg))

Not really readable. Depending on the content/regexp I usually use | or #

preg_match('|(.*/)(.*)$|', $fileref, $reg))

But the poinz is, by using other characters then / you don't have to escape it (increasing readability).

Masi


More information about the TYPO3-team-core mailing list