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.
次のような要素を見つけるための正規表現の書き方
Ab1-123456-NFTGTF
私は何かを試しました
^([a-zA-Z0-9][^=](\-)[^=][a-zA-Z0-9][^=](\-)[^=][a-zA-Z0-9]
I should have 3(文字と数字の組み合わせ) - 6数字 - 6(文字と数字の組み合わせ) – 学習者
次の正規表現を試してください
^[a-zA-Z0-9]{3}-[0-9]{6}-[a-zA-Z0-9]{6}$