title: Why can't I write if statement using prefix match in smarty?
body: <p>I want to write an if statement using prefix matching in smarty.
  However, it becomes a syntax error.</p>
  <blockquote>
  <p>Parse error: syntax error, unexpected '!=' (T_IS_NOT_EQUAL)</p>
  </blockquote>
  <p>Please teach me the correct way to write</p>
  <pre><code>&lt;div&gt;
      &lt;p&gt;text&lt;/p&gt;
      {if $page_id === &quot;video&quot;
       || $page_id === &quot;movie&quot;
       || $page_id === $str|regex_replace:'/^live_/':'x' ne $str}
      }
       &lt;p&gt;additional text&lt;/p&gt;
      {/if}
  &lt;/div&gt;
  </code></pre>
  <p>I want all ids starting from &quot;live_&quot; to be true.</p>
  <p>live_a,live_b,live_c,live_d ... live_z</p>