Use of "|" in a variable

I’m running into a little problem trying to register a variable with a “|” in it. Anybody know how to escape those?

I’ve got this template :

{% for sections in transforms_conf %}

[{{ sections.section }}]

{% for options in sections.options %}

{% for option, value in options.iteritems() %}

{{ option }} = {{ value }}

{% endfor %}

{% endfor %}

{% endfor %}

With the following variables :

transforms_conf:

  • section: setnull

options:

  • REGEX: “\b/exclude1/\b|\b/exclude2/\b”

  • DEST_KEY: queue

  • FORMAT: nullQueue

Which I’m trying to get this as output :

[setnull]

REGEX = \b/exclude1/\b|\b/exclude2/\b

DEST_KEY = queue

FORMAT = nullQueue

Although I only get this in the results :

[setnull]

REGEX = \b/exclude1/\b

DEST_KEY = queue

FORMAT = nullQueue

Thanks

I'm not able to replicate this:

Tried to escape it?

  • REGEX: “\b/exclude1/\b|\b/exclude2/\b”