StartOfString
StartOfString represents the start of a string for purposes of matching in StringExpression.
This is similar to ^ in regular expressions.
Examples
StringMatchQ["hello", StartOfString ~~ "he" ~~ __]StringReplace["test string", StartOfString ~~ x_ :> ToUpperCase[x]]StringCases["abc123", StartOfString ~~ LetterCharacter ..]*See the official Wolfram Language Reference for more details.