[TYPO3-english] Using vertical bars in regular expressions in Typo forms

Christopher Torgalson bedlamhotel at gmail.com
Mon Jul 20 18:19:10 CEST 2009


Hi,

On Mon, Jul 20, 2009 at 3:30 AM, Jonathan Hartshorn<jonaboff91 at gmail.com> wrote:
>>>> Is it possible to use the '|' metacharacter in EREG expressions in
>>>> mailforms?
>>>> ...
>>> 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.
>>> ...
>> Another possibility could be (I've never tested) to note "|" as chr(0x7c)
>>
>> chr is also accepted as stdWrap-property.
>
> Thanks for the replies; I don't know how I would use either stdWrap or
> chr(0x7c) in the form object. Is there a way to edit the form object
> array directly? Or can I do it through the form wizard, somehow?


Sorry, I was just responding to your query about an escape character
for TS--in most cases, being able to change the wrap splitter or use
chr(#) syntax solves escaping-type problems.

In your case, I think you're right I don't see how it can be applied
to the EREG stuff. It sounds as though, if the pipe character is not
accepted in the ereg context, it might be a bug. The form content
element's TS [see 1 for details] is defined by CSS Styled Content, and
ordinarily, I'd suggest modifying that, but it looks as though the
ereg stuff is only available in the content element, and not in the TS
data array (?)

[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.1/view/1/8/#id4406208

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list