[TYPO3-english] Using vertical bars in regular expressions in Typo forms
David Bruchmann
typo3-en at bruchmann-web.de
Sun Jul 19 20:22:20 CEST 2009
----- Ursprüngliche Nachricht -----
Von: Christopher Torgalson <bedlamhotel at gmail.com>
Gesendet: Sonntag, 19. Juli 2009 19:50:18
An: TYPO3 English <typo3-english at lists.netfielders.de>
CC:
Betreff: Re: [TYPO3-english] Using vertical bars in regular
expressions in Typo forms
> Hi,
>
> On 19-Jul-09, at 8:42 AM, Jonathan Hartshorn wrote:
>
>> Is it possible to use the '|' metacharacter in EREG expressions in
>> mailforms?
>>
>> I have been trying to do this, but when I enter the raw vertical bar
>> it is parsed as typoscript, and when I tried %7C code the % gets url
>> encoded.
>>
>> I have rewritten the expression without the alternative patterns, but
>> the result isn't quite the pattern I wanted.
>>
>> BTW if an 'escape character' for typoscript is documented somewhere
>> please point me to it; I have been googling for quite a while to no
>> avail.
>
>
> See .wrap in the stdWrap section of the TSref [1]. You can alter the
> 'splitChar' (which is usually the pipe character) for a given wrap.
>
> [1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/5/#id4149585
Another possibility could be (I've never tested) to note "|" as chr(0x7c)
chr is also accepted as stdWrap-property.
Regards
David
More information about the TYPO3-english
mailing list