I am quite confused about the following cases, in Mathematica


   StringMatchQ["ł", WordCharacter ..]

The first case gives True. The second gives False. Documentation states that WordCharacter match anything for which LetterQ is true.

  • $\begingroup$ With v11.3.0 on my Mac both expressions evaluate to True $\endgroup$ – Bob Hanlon Oct 1 '18 at 13:57
  • $\begingroup$ Ah, so this must be a bug then, in the older version, I suppose. $\endgroup$ – Per Alexandersson Oct 1 '18 at 14:06
  • 3
    $\begingroup$ I guess you could say they polished StringMatchQ in newer versions. $\endgroup$ – AccidentalFourierTransform Oct 1 '18 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.