Javascript to check for PO boxes
It’s not pretty, but sometimes you need to check an address input to see if it’s a PO box. Rules will be different around PO boxes. For that, I use a simple javascript pattern. It has the down side of checking for “P”, “O”, and “Box” in the string in order, so something like Poratable…