title: jinja2: TemplateSyntaxError: expected token ',', got 'string'
body: <p>I am new to Jinja2 and having an issue with using python regular expression (re). In the following code I would like to bold the lines that have error string in them.</p>
  
  <pre><code>  {% block content %}
      &lt;div class="container"&gt;
        {% for l in lines %}
           {% if re.search(r"Error", l) %}  {# &lt;&lt;&lt; Throws error #}
              &lt;b&gt; {{ l }} &lt;/b&gt;
           {% else %}
              {{ l }} &lt;hr&gt;
           {% endif %}
        {% endfor %}
      &lt;/div&gt;
   {% endblock %}
  </code></pre>
  
  <p>The re.search above throws following error:</p>
  
  <pre><code>jinja2.exceptions.TemplateSyntaxError
  TemplateSyntaxError: expected token ',', got 'string'
  </code></pre>