in reply to Re: Benchmarking "Are all these characters in this sentence?"
in thread Benchmarking "Are all these characters in this sentence?"

You're checking whether only the wantedchars are used.

That wouldn't work. The question isn't whether the sentence consists ONLY of characters in the wantedchars, just whether or not ALL the wantedchars are present.


Mike
  • Comment on Re^2: Benchmarking "Are all these characters in this sentence?"

Replies are listed 'Best First'.
Re^3: Benchmarking "Are all these characters in this sentence?"
by martin (Friar) on Sep 08, 2008 at 09:43 UTC
    You're checking whether only the wantedchars are used.

    Not quite. It's supposed to be the other way round. The idea is to check whether $wantedchars only contains characters from $sentence.