Next: match_pattern

Prev: lowercase

match_begin

match_begin(string, search)
match_begin(string, search, separator)
This function looks for the string search at the beginning of each word in string. The word separator is given by the string separator if it is specified; otherwise, a space (" ") is used. The return value of match_begin() is 1 if search was found at the beginning of a word in string, or 0 if not.

Examples:

match_begin("foo:bar:baz", "fo", ":")
     => 1
match_begin("foo bar baz", "ar")
     => 0