Home › Forums › Quform WordPress › Regex HELP!
- This topic has 8 replies, 3 voices, and was last updated 11 years, 9 months ago by Ally.
- AuthorPosts
- February 8, 2013 at 7:55 pm #2721JoeZParticipant
Hey 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 #2722jerkskiParticipantFebruary 8, 2013 at 8:01 pm #2723JoeZParticipantI 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 #2724JoeZParticipantMy form is located here: http://registration.dsa2000.org
February 8, 2013 at 8:23 pm #2725JoeZParticipantIn 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 #2740AllySupport 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 #2748JoeZParticipantHi 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 #2749JoeZParticipantAlos, there are no other filters or valid. I removed them before to try to eliminate all variables. 🙂
February 11, 2013 at 11:29 am #2763AllySupport 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.