/\d/ # contains a digit
/^\D*$/ # doesn't contain a digit
/[abc]/ # contains either the letter a, b, or c
/^[^abc]*$/ # doesn't contain a, b, or c
/foo|bar/ # contains foo or bar
/???????/ # doesn't contain foo or bar
誰が私を助けることができますか?私は任意の解決策を見つけることができませんでしたが、プログラマブルロジックなしでを否定する正規表現が必要です。Perl正規表現/ foo | bar/negation
|バー/' 'で/ fooの|バー/' – TLP