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文字、最大15文字です。
前もって感謝します..
これがうまくいくかどうか教えてください:
^[a-zA-Z]([a-zA-Z0-9]|\.|-){1,14}$
ASCII に問題がない場合:
^[A-Za-z][-\w.]{1,14}$