StringMatchQ
StringMatchQ["string", patt] tests whether the entire string matches the pattern.
StringMatchQ[patt] represents an operator form.
Examples
Match with wildcard:
StringMatchQ["Hello World", "Hello*"]
(* True *)Match entire string:
StringMatchQ["abc123", LetterCharacter..]
(* False *)With regex:
StringMatchQ["[email protected]", RegularExpression[".+@.+\\..+"]]
(* True *)Please visit the official Wolfram Language Reference for more details.