Postal code validation for United States and Canada

Highlighted
Level 1

Postal code validation for United States and Canada

Is that a way to prevent a form (form 2.0) submitted when a lead insert an in-correct postal code for the United States and Canada?  Where can I find a Marketo document for USA & Canada postal code (Regex) validation script?