Also: you might as well: <code>
return strcspn(str, "...") != strlen(str); /* else it's just a plain literal */
</code>

... albeit the resulting test for IsRegex() is actually "is a *non-trivial* regex".