How can i string match a *?
(ex: string match a '+' = [string match "*+*" "*$text*"])
And since the parser itself performs backslash substitution, you'll need to escape the backslash to get one through to to the command.\x
Matches the single character x. This provides a way of avoiding the special interpretation of the characters *?[]\ in pattern
Code: Select all
string match *\\** a*a
or alternatively, supply braces to eliminate the interpretter from implicitly interpretting special characters itself...user wrote:And since the parser itself performs backslash substitution, you'll need to escape the backslash to get one through to to the command.Code: Select all
string match *\\** a*a
Code: Select all
string match {*\**} a*a