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.
この Regex^[a-zA-Z0-9]{2,20}$を使用して、次のルールを許可しています。
^[a-zA-Z0-9]{2,20}$
また、s で終わる単語の末尾にのみアポストロフィを許可したいと考えています。
ありがとう、
^([a-zA-Z0-9]{2,20}|[a-zA-Z0-9]{2,18}'s)$
したがって、元の正規表現、または元の正規表現 (最大 18 文字に削減されます。最小値も変更する必要がある場合があります) のいずれかで、"'s".
"'s"