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.
重複の可能性: 有効なローマ数字のみを正規表現とどのように一致させますか?
やあ、
正規表現を次のようなものに一致させるにはどうすればよいですか
[i]) [ii]) [iii]) [iv])
等々...
ありがとう
/^\[[ivmcldx]+\])/
最も一般的なローマ数字をキャッチする必要があります。ただし、のような無効な数字に遭遇することはありませんiiix。
iiix