Home › Forums › Quform WordPress › Regex HELP!
- This topic has 8 replies, 3 voices, and was last updated 11 years, 7 months ago by
Ally.
- AuthorPosts
- February 8, 2013 at 7:55 pm #2721
JoeZ
ParticipantHey Everyone,
I’ve read everything I can find on Regex validation. I am running version 1.4, and I’m trying to get my phone number validation to look like the following: (999)999-9999 OR 999-999-9999.
I have searched the internet everywhere and the pattern codes I’m finding just aren’t working. I don’t know what I”m doing wrong, but its very frustrating. Can anyone help me with the correct pattern code?
Thank you!
February 8, 2013 at 7:59 pm #2722jerkski
ParticipantFebruary 8, 2013 at 8:01 pm #2723JoeZ
ParticipantI have checked that. I copied and pasted the Validation into the pattern field exactly as listed there without success.
February 8, 2013 at 8:03 pm #2724JoeZ
ParticipantMy form is located here: http://registration.dsa2000.org
February 8, 2013 at 8:23 pm #2725JoeZ
ParticipantIn fact, no matter what Regex code I try, it says it is not valid. I’m at a total loss.
February 10, 2013 at 12:41 pm #2740Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 10, 2013 at 4:34 pm #2748JoeZ
ParticipantHi Ally!
Great to hear from you. This is the latest one I’ve tried:
^[\\(]{0,1}([0-9]){3}[\\)]{0,1}[ ]?([^0-1]){1}([0-9]){2}[ ]?[-]?[ ]?([0-9]){4}[ ]*((x){0,1}([0-9]){1,5}){0,1}$
I also tried the one listed above on the link posted about Regex. I know this string would allow different formats, though Ideally I’d like it to be in the format 888-888-8888.
If you possibly need login information to get this resolved, I’d be happy to PM it to you. Thanks Ally!
February 10, 2013 at 4:35 pm #2749JoeZ
ParticipantAlos, there are no other filters or valid. I removed them before to try to eliminate all variables. 🙂
February 11, 2013 at 11:29 am #2763Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.