[TYPO3-core] preg_replace / back references

Wolfgang Klinger wolfgang at stufenlos.net
Tue Jun 26 12:17:04 CEST 2007


*hiya!*

On Jun 26, 2007, at 11:23 AM, Dmitry Dulepov wrote:
> Wolfgang Klinger wrote:
>> Patch attached.
>> Please approve.
>
> By the way, why it is not simple '\1'?
>
> I see no problem with ${1} because it is standard syntax but just  
> curious...

because it would lead to the same problem again...
I have a page title '12345' and this would lead to
\112345 in the regular expression and therefore not work,
'cause the back reference 112345 does not exist.


bye
Wolfgang



More information about the TYPO3-team-core mailing list