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.
アンデススコアで区切られた 2 つの正の整数を含む必要がある文字列に一致する正規表現が必要です。
例:
12345_678 は良い 12345-678 は悪い 12345_678a は悪い
ありがとう
^[0-9]+_[0-9]+$やります。
^[0-9]+_[0-9]+$
説明
^
[0-9]+
_
$