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%〜100%に一致する単純な正規表現を作成しようとしています
これを書くためのより良い方法はありますか?
^([1-9]|[1-9][0-9]|100)%$
あなたはそれを少し短くすることができます:
^([1-9][0-9]?|100)%$