POSITION:028,114
COLOUR:EUPHORIA
TEXT:00,atom match_1, match_2, match_3
TEXT:32,match_1 = wildcard_match("a*","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
TEXT:16,match_2 = wildcard_match("?Z","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
TEXT:16,match_3 = wildcard_match("PQR*","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
COLOUR:STANDARD
TEXT:32,All three variables above will be assigned a value of 0. The first
TEXT:16,wildcard_match() line won't match because the pattern has a lowercase
TEXT:16,letter while the searched string is all in uppercase. The second
TEXT:16,wildcard_match() will not match because ? was used instead of *, even
TEXT:16,though "Z" is indeed the last letter of the searched string. "?Z" means
TEXT:16,any two character string, the second character being "Z". The
TEXT:16,last wildcard_match() line will not match because even though "PQR" does
TEXT:16,exist in the searched string, the pattern "PQR*" implies a match only
TEXT:16,if the searched string begins with "PQR".
