In an application i need to validate a form field for german telephone numbers,tried some but doesnt works exactly, any help will be appreciated..
The answers to this question should solve this for you: Validate phone number with JavaScript
You just need to adjust the regex to suit the German format
The regex from https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 might do the job: /^([+][0-9]{1,3}[ .-])?([(]{1}[0-9]{1,6}[)])?([0-9 .-/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With