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.
これらの文字"<"、 ">"、 "="を含まないすべての文字列をQRegExp(Qt)と照合したいと思います。次の正規表現では、これは機能していません。
"^[^><=]+$"
なぜ?私にとっては、文字列の始まり、>、<、=ではない1つ以上の文字、および文字列の終わりを意味します
ありがとう
編集
マッチングしたい
BUILD
たとえば、私は一致したくない
BU<ILD
他の方法を試してみてください。使用する:
^(?!.*[<>=]).*$