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.
最小3文字と最大20文字のようなmaアプリケーションのユーザー名にいくつかのルールを設定し、小文字と数字、およびのような2つの特別なチャーターのみを許可します。そして_それも一度だけ。これどうやってするの。
正規表現の使用:
if(username.match(/^[a-z0-9_\.]{3,20}$/)==null) alert('Error!');