Maybe there is a knot in my head, but I would expect that
StringMatchQ["IP1", "IP"]
should return True (which it does not) just as
StringFreeQ["IP1", "IP"]
returns False (which it does). What am I missing?
|
Maybe there is a knot in my head, but I would expect that
should return
returns |
|||
|
|
|||||||||||||||
|
|
If you like to think in negatives and avoid regular expressions:
|
|||
|
|
StringFreeQis to strings asFreeQis to expressions, thenStringMatchQis to strings asMatchQ, and not asMemberQ, is to expressions – Rojo Aug 27 '12 at 13:02