RegEx Client Validation WA Validation Toolkit
I am having a problem with validating a field (shipping address) on the checkout form page.
I am trying to block PO Box addresses when shipping via FedEx
the Regular Expression is as follows:
WAValidateRX(document.ecart_checkout_form.shipping_street1,'text','\\b[P|p]*(OST|ost)*\\.*\\s*[O|o|0]*(ffice|FFICE)*\\.*\\s*[B|b][O|o|0][X|x]\\b','- No PO Box delivery',document.ecart_checkout_form.shipping_street1,0,true);
any help would be grand- thank you.