No, because the goal here isn&#x27;t just to match it at the beginning, it&#x27;s also to match it after a non-word character. I don&#x27;t know what the inputs look like, but the regex was clearly intended to match things like &quot;foo.testMe&quot;, &quot;bar-test&quot;, &quot;baz&#x2F;Test.ext&quot;, etc.