I've found an old MathGroup discussion on this topic from where I learned that StringCases
and StringPosition
don't have thesupport abbreviated string pattern optionpatterns, and that Verbatim
forces StringMatchQ
to match two strings literally: StringMatchQ["\\*", Verbatim["\\*"]]
returns True
.