I’d advise against stuff like this since there’s almost always a country where the phone numbers won’t match the validation, but here is the regex that matches your request
^\+?[0-9]{8,15}$
More Related Contents:
- This doesn’t seem right? Javascript isn’t working
- JavaScript: client-side vs. server-side validation
- Including a hyphen in a regex character bracket?
- Required field validations not working in JQuery Popup MVC 4
- Validation of file extension before uploading file
- Trying to Validate URL Using JavaScript
- How to test valid UUID/GUID?
- Regular expression for URL validation (in JavaScript)
- Validating user’s UTF-8 name in Javascript
- Check if a number has a decimal place/is a whole number
- jQuery add required to input fields
- Javascript regular expression to validate URL
- javascript regex for password containing at least 8 characters, 1 number, 1 upper and 1 lowercase [duplicate]
- How to get old Value with onchange() event in text box
- Enable/Disable submit button if checkbox is checked/unchecked?
- Should you do validation on the server side?
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Check if HTML snippet is valid with JavaScript
- How to show setCustomValidity message/tooltip without submit event
- Check if date is in the past Javascript
- jquery only allow input float number
- Validate html text input as it’s typed
- How do I add validation to the form in my React component?
- How to set custom validation messages for HTML forms?
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- How do I make an input field accept only letters in javaScript?
- How to programmatically calculate the contrast ratio between two colors?
- How to highlight a part part of an Input text field in HTML using Javascript or JQuery
- Joi Validations: If object matches the schema validate against it from multiple items
- Check if a browser has built-in HTML form validation?