0

I've created a custom form field for Canadian Postal code. Is there a way i can validate the format using RegEx? I can make it required, but I need more than that.

Pekka
  • 442,112
  • 142
  • 972
  • 1,088
Mark Handy
  • 1,180
  • 1
  • 11
  • 23
  • I'm seeing 27,300 results when Googling `Canadian postcode regex`. Always remember to do that first. Does none of the results work for you? If that's the case, consider adding more detail. – Pekka Feb 15 '17 at 16:44
  • Possible duplicate of [Efficient regex for Canadian postal code function]( http://stackoverflow.com/questions/15774555/efficient-regex-for-canadian-postal-code-function) – Pekka Feb 15 '17 at 16:45
  • Pekka, do you know what Pardot is? – Mark Handy Feb 15 '17 at 16:48
  • No, I assumed that is what Canadian postal codes are named in French or something, and you were tagging incompetently. Apologies. (The regexes in the linked questions might still be helpful, depending on what notation the product uses, no?) – Pekka Feb 15 '17 at 16:50

0 Answers0