How about adding a space in the pattern attribute like pattern="[a-zA-Z0-9 ]+"
.
If you want to support any kind of space try pattern="[a-zA-Z0-9\s]+"
Related Contents:
- Regex match one of two words
- HTML input for Positive Whole Numbers Only (Type=number)
- How to validate phone numbers using regex
- Disable validation of HTML5 form elements
- HTML5 form required attribute. Set custom validation message?
- RegEx for matching UK Postcodes
- Using the HTML5 “required” attribute for a group of checkboxes?
- Regular expression for first and last name
- Validating email addresses using jQuery and regex
- Validating IPv4 addresses with regexp
- What is a regular expression which will match a valid domain name without a subdomain?
- Regular Expression Match to test for a valid year
- Disable validation of HTML form elements
- Is it valid to have two input elements with the same name?
- Decimal or numeric values in regular expression validation
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- How to validate numeric values which may contain dots or commas?
- How to set custom validation messages for HTML forms?
- Validate select box
- Is regular expression recognition of an email address hard?
- HTML5 validation when the input type is not “submit”
- How to Call a JS function using OnClick event [duplicate]
- What is the usage of Angular directive novalidate in a form html tag
- How do I make a field required in HTML?
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Laravel validate decimal 0-99.99
- Have HTML5’s a inputs pattern attribute ignore case
- Reference – Password Validation
- How do you disable browser autocomplete on web form field / input tags?
- Regular expression to extract text between square brackets
- Removing empty lines in Notepad++
- What is the difference between .*? and .* regular expressions?
- How do I remove all non-ASCII characters with regex and Notepad++?
- Can you have multiline HTML5 placeholder text in a ?
- How do I get the collection of Model State Errors in ASP.NET MVC?
- Multi-line regex support in Vim
- How to get the raw value an field?
- How to validate an Email in PHP?
- How can I use ‘Not Like’ operator in MongoDB
- How to replace all strings to numbers contained in each string in Notepad++?
- Regular expression containing one word or another
- How can I recognize an evil regex?
- Notepad++ incrementally replace
- Find the location of a character in string
- What is the idiomatic scala way of finding, if a given string contains a given substring?
- Regex that matches integers in between whitespace or start/end of string only
- What are the differences between glob-style patterns and regular expressions?
- Decoding URL parameters with JavaScript
- Regex for youtube URL
- Are Perl regexes turing complete?