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.
次のシナリオに一致してチェックする正規表現パターンを教えてください。改行文字で区切られたテキストを一致させようとしています。各行は 3 桁 (\d{3}) のみで、最大 100 行です。
これで結構です:
123 456 789
これは良くありません:
123 123789 456
これは問題です (途中と最後にある空の行に注意してください)。
123 456
提案と助けをいただければ幸いです。ありがとう。