#####################################
Trying to match hello with hello
wildcard-match (h e l l o) (h e l l o)
wildcard-match (e l l o) (e l l o)
wildcard-match (l l o) (l l o)
wildcard-match (l o) (l o)
wildcard-match (o) (o)
wildcard-match () ()
=> true
#####################################
Trying to match hello with h?l?o
wildcard-match (h e l l o) (h ? l ? o)
wildcard-match (e l l o) (? l ? o)
( )Try to match no character...
wildcard-match (e l l o) (l ? o)
( )Ok, so try to match any character...
wildcard-match (l l o) (l ? o)
wildcard-match (l o) (? o)
( )Try to match no character...
wildcard-match (l o) (o)
( )Ok, so try to match any character...
wildcard-match (o) (o)
wildcard-match () ()
=> true
#####################################
Trying to match hllo with h?l?o
wildcard-match (h l l o) (h ? l ? o)
wildcard-match (l l o) (? l ? o)
( )Try to match no character...
wildcard-match (l l o) (l ? o)
wildcard-match (l o) (? o)
( )Try to match no character...
wildcard-match (l o) (o)
( )Ok, so try to match any character...
wildcard-match (o) (o)
wildcard-match () ()
=> true
#####################################
Trying to match hlo with h??lo
wildcard-match (h l o) (h ? ? l o)
wildcard-match (l o) (? ? l o)
( )Try to match no character...
wildcard-match (l o) (? l o)
( )Try to match no character...
wildcard-match (l o) (l o)
wildcard-match (o) (o)
wildcard-match () ()
=> true
#####################################
Trying to match hello with h?lo
wildcard-match (h e l l o) (h ? l o)
wildcard-match (e l l o) (? l o)
( )Try to match no character...
wildcard-match (e l l o) (l o)
( )Ok, so try to match any character...
wildcard-match (l l o) (l o)
wildcard-match (l o) (o)
=> false
#####################################
Trying to match hello with h???p
wildcard-match (h e l l o) (h ? ? ? p)
wildcard-match (e l l o) (? ? ? p)
( )Try to match no character...
wildcard-match (e l l o) (? ? p)
( )Try to match no character...
wildcard-match (e l l o) (? p)
( )Try to match no character...
wildcard-match (e l l o) (p)
( )Ok, so try to match any character...
wildcard-match (l l o) (p)
( )Ok, so try to match any character...
wildcard-match (l l o) (? p)
( )Try to match no character...
wildcard-match (l l o) (p)
( )Ok, so try to match any character...
wildcard-match (l o) (p)
( )Ok, so try to match any character...
wildcard-match (l l o) (? ? p)
( )Try to match no character...
wildcard-match (l l o) (? p)
( )Try to match no character...
wildcard-match (l l o) (p)
( )Ok, so try to match any character...
wildcard-match (l o) (p)
( )Ok, so try to match any character...
wildcard-match (l o) (? p)
( )Try to match no character...
wildcard-match (l o) (p)
( )Ok, so try to match any character...
wildcard-match (o) (p)
=> false