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.
母音の数が奇数のすべての単語を正規表現で削除しようとしています。
私は次のようなものを試しました[aeoui][^aeoui]*([aeoui][^aeoui]*[aeoui][^aeoui]*)
[aeoui][^aeoui]*([aeoui][^aeoui]*[aeoui][^aeoui]*)
どうですか:
(^|\W)([^aeoui\W]*([aeoui][^aeoui\W]*[aeoui][^aeoui\W]*)*[aeoui][^aeoui\W]*)(\W|$)
編集:viの正確な構文はわかりませんが、使用されている要素はviで使用できるはずです。
単語自体は2番目のグループにあります。