有効なエントリが 's' 'a' 't' または 'b' または文字列 'all' である文字列があります。エントリーがいつ無効になるかを知りたい。悪い文字列をテストするには、否定が必要なようです。結果は次のようになります。
preg_match('/[^satb(all)]/', 's') ==> should be false (and is)
preg_match('/[^satb(all)]/', 'sall') ==> should be false (and is)
preg_match('/[^satb(all)]/', 'alsl') ==> should be true but is not (the l's are not part of 'all')
いろいろな組み合わせを試しましたが、うまくいきません。助けてくれてありがとう。