I&#x27;m not 100% sure what the intent of the code is, but it sounds like something that doesn&#x27;t need a regex at all. Would<p><pre><code>    &#x27;test&#x27; in x.lower()
</code></pre>
work? Or maybe<p><pre><code>    x[:4].lower() == &#x27;test&#x27;
</code></pre>
if you want it to be at the beginning.