Skip to content

StringMatchQ

StringMatchQ(string, regex-pattern)

check if the regular expression regex-pattern matches the string.

See

Examples

>> StringMatchQ({"ExpandAll", "listable", "test"}, RegularExpression("li(.+?)le"))
{False,True,False}
>> StringMatchQ("15a94xcZ6", (DigitCharacter | LetterCharacter)..)
True

StringCases, StringContainsQ, StringCount, StringExpression, StringFreeQ, StringInsert, StringJoin, StringLength, StringPart, StringPosition, StringQ, StringReplace, StringRiffle, StringSplit, StringTake, StringToByteArray, StringTrim

Implementation status

  • ✅ - full supported

Github