Welcome, Guest
Username: Password: Remember me

TOPIC: Good regex for validating phone numbers?

Good regex for validating phone numbers? 2 years 11 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.

Re: Good regex for validating phone numbers? 2 years 11 months ago #70314

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: mishpish

Re: Good regex for validating phone numbers? 2 years 11 months ago #70317

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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.
Moderators: ITEd
Time to create page: 0.118 seconds
Donation Image