Actually, I feel compelled to note that as written, \(dog|cat\)* doesn&#x27;t do what I said; it matches stuff like this:<p><pre><code>    (dog
    cat))))
    cat
</code></pre>
What I said embarrassingly requires another set of non-escaped parens: \((dog|cat)\)*<p>:(