USA residential regex validation code example Example: zip regex expression for united states ^[0-9]{5}(?:-[0-9]{4})?$