Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Good regex for validating phone numbers?

Good regex for validating phone numbers? 4 years 9 months ago #70280

  • mishpish
  • mishpish's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I'm looking for a regex for validating phone numbers. The ones in the LimeSurvey docs aren't working for me. I've tried dozens others out there. Any real suggestions? Thanks for your time and help!
The administrator has disabled public write access.

Good regex for validating phone numbers? 4 years 9 months ago #70314

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6315
  • Thank you received: 1407
  • Karma: 546
Phone number formats vary depending on the country/continent so any regular expressions would be different depending on where you are.

Have a look at regexlib.com/
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: mishpish

Good regex for validating phone numbers? 4 years 9 months ago #70317

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6009
  • Thank you received: 371
  • Karma: 260
A collection of regex can also be found here: docs.limesurvey.org/Using+regular+expres...tions+for+LimeSurvey

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Time to create page: 0.703 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form