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.
重複する文字を見つけて拒否するフレックス プログラム用の正規表現を作成する必要があります。これで1週間頭を悩ませています。お時間をいただきありがとうございます。
大文字と小文字を区別しない場合:
.*(A.*A|B.*B|C.*C|D.*D|E.*E|F.*F|G.*G|H.*H|I.*I|J.*J|L.*L|M.*M|N.*N|O.*O|P.*P|Q.*Q|R.*R|S.*S|T.*T|U.*U|V.*V|X.*X|Y.*Y|W.*W|Z.*Z).*
括弧内と同じ一致が続く任意の文字に一致します。/(.)\1/
/(.)\1/
編集:これは継続文字にのみ一致します。/(.).*\1/全試合で使用。
/(.).*\1/