You can use this regex /^[a-z0-9]+$/i
More Related Contents:
- This doesn’t seem right? Javascript isn’t working
- phone number validation in js [closed]
- What’s the best way to validate an email address in JavaScript?
- Including a hyphen in a regex character bracket?
- How to get the raw value an field?
- What is the minimum valid JSON?
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- Trying to Validate URL Using JavaScript
- How to set HTML5 required attribute in Javascript?
- Javascript: how to validate dates in format MM-DD-YYYY?
- Limit number of lines in textarea and Display line count using jQuery
- Validate phone number using javascript
- Safari JS cannot parse YYYY-MM-DD date format?
- Should you do validation on the server side?
- Parsing numbers with a comma decimal separator in JavaScript
- show validation error messages on submit in angularjs
- Check if HTML snippet is valid with JavaScript
- HTML/JavaScript: Simple form validation on submit
- Why do we need both client side and server side validation? [closed]
- AngularJS: How do I manually set input to $valid in controller?
- How to show setCustomValidity message/tooltip without submit event
- Validate html text input as it’s typed
- How to set custom validation messages for HTML forms?
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- angularjs form reset error
- How to highlight a part part of an Input text field in HTML using Javascript or JQuery
- How to apply both ValidationPipe() and ParseIntPipe() to params?
- input:invalid css rule is applied on page load
- Joi Validations: If object matches the schema validate against it from multiple items
- How can I void a form action and execute jQuery when all HTML form elements are validated?