Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
単語のいずれかにたとえば文字が含まれている場合、正規表現を使用して特定の文字列をチェックしたいのですが、文字を含めてはなりません。q-wı-ş
q-w
ı-ş
given string = > abc qşl def , not matches given string = > abc qsl def , matches
敬具、 HH
これを試して:
^[^ı-ş]*[q-w][^ı-ş]*$|^[^q-w]*$
ここにデモンストレーションがあります。そうですか?