[TYPO3-english] Using vertical bars in regular expressions in Typo forms
Christopher Torgalson
bedlamhotel at gmail.com
Sun Jul 19 19:50:18 CEST 2009
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
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list