[TYPO3-core] RFC #11152: Warning in Import/Export Module

Martin Kutschker masi-no at spam-typo3.org
Thu May 21 23:15:15 CEST 2009


Rupert Germann schrieb:
> hi,
> 
> Martin Kutschker wrote:
>>> there are exceptions when it's at the beginning or the end,
>> No, the dot within a character class, ie between square brackets doesn't
>> need to be escaped
> 
> interesting. there is indeed an error but it depends on the position of the
> dot inside the [].
> /[^[:alnum:]\/_-.]*/

No, it's the hyphen. A hyphen on it's own can only be the very last one
without escaping. Unescaped it's a character range (eg a.z).

So this should be written like this:

/[^[:alnum:]\/_.-]*/

Masi


More information about the TYPO3-team-core mailing list