Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Custom Perl Regular Expression in Validation - started to causing an error

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
8 years 10 months ago - 8 years 9 months ago #275052 by azjr
HI - I just received an note from client that an phone number field we've created some time ago, now triggers an error in attempt to enter phone numbers

Originally I've set a custom perl expression:
Code:
/^([\(][0-9]{3}[\)][ ]([0-9]{3})[-]([0-9]{4}))$/
that forces a user to enter phone number in the following format: (xxx) xxx-xxxx

The phone numbers are also being scanned for duplicates, but I've tried various scenarios with bogus numbers when the code is in place, and I'm receiving an error. When I remove the custom perl, I can enter and save the number without any issues. Any thoughts? Thanks!
Last edit: 8 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275063 by nant

azjr wrote: HI - I just received an note from client that an phone number field we've created some time ago, now triggers an error in attempt to enter phone numbers

Originally I've set a custom perl expression:

Code:
/^([\(][0-9]{3}[\)][ ]([0-9]{3})[-]([0-9]{4}))$/
that forces a user to enter phone number in the following format: (xxx) xxx-xxxx

The phone numbers are also being scanned for duplicates, but I've tried various scenarios with bogus numbers when the code is in place, and I'm receiving an error. When I remove the custom perl, I can enter and save the number without any issues. Any thoughts? Thanks!


Could be related to this known issue:

forge.joomlapolis.com/issues/5632

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275190 by krileon
Are you having this issue on all browsers? If not what browser specifically is doing this? If is a specific browser please ensure it's up to date.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
8 years 9 months ago #276215 by azjr
Kyle - I cannot confirm if this is on all browsers - the clients reporting it are on windows; I have tested on Mac Chrome and Safari getting the error.

Here are few details from client's reporting this error:
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Browser: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36

Please Log in or Create an account to join the conversation.

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
8 years 9 months ago #276216 by azjr
BTW, the CB is updated to the 2.0.12 (current vers as of Jan 9, 2016) - and I still experience the error

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago - 8 years 9 months ago #276269 by krileon
You need to install latest nightly below. The fix is not in a versioned release yet.

www.joomlapolis.com/downloads/doc_details/640-community-builder-nightly-build

We've retested with latest nightly on all major browsers as working fine. If they continue to have issues please ask them to update their browser to latest version if available.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 9 months ago by krileon.
The following user(s) said Thank You: nant, azjr

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum