Words match case insensitively, and may include a * wildcard. So:
foo matches the string foo surrounded by word delimiters (e.g. punctuation and whitespace or start/end of line).
foo* matches any such word that begins foo.
*foo* matches any such word which includes the 3 letters foo.