Scalar. Determines whether a given string matches a specified pattern string.
like ( string, pattern )
string | A string. |
pattern | A pattern of characters, as a string. Can contain wildcards. |
Determines whether a string matches a pattern string. The function returns 1 if the string matches the pattern, and 0 otherwise. The pattern argument can contain wildcards: '_' matches a single arbitrary character, and '%' matches 0 or more arbitrary characters. The function takes in two strings as its arguments, and returns an integer.
like ('MSFT', 'M%T') returns 1.