# pobox-regex

> Regular expression for matching PO Box addresses

Latest version **1.0.0** (published 2017-08-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install pobox-regex
pnpm add pobox-regex
yarn add pobox-regex
bun add pobox-regex
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-08-03 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | J.C. Yamokoski |
| Maintainers | jonyamo |
| Keywords | po-box, regex |

## Links

- npm: https://www.npmjs.com/package/pobox-regex
- Repository: https://github.com/jonyamo/pobox-regex
- Homepage: https://github.com/jonyamo/pobox-regex#readme
- Issues: https://github.com/jonyamo/pobox-regex/issues
- npm.io page: https://npm.io/package/pobox-regex

## Recent versions

- 1.0.0 (latest) — 2017-08-03
- 0.0.1 — 2017-08-02

## README

# pobox-regex
Regular expression for matching PO box addresses
```js
/(?:P(?:ost(?:al)?)?[\.\-\s]*(?:(?:O(?:ffice)?[\.\-\s]*)?B(?:ox|in|\b|\d)|o(?:ffice|\b)(?:[-\s]*\d)|code)|box[-\s\b]*\d)/i
```

## Positive List
- PO Box 123
- P O box 123
- P. O. Box 123
- P.O.Box 123
- post box 123
- post office box 123
- post office 123
- P.O.B 123
- P.O.B. 123
- Post Office Bin 123
- Postal Code 123
- Post Box #123
- Postal Box 123
- P.O. Box 123
- PO. Box 123
- P.o box 123
- Pobox 123
- pob 123
- pob123
- pobox123
- p.o. Box123
- po-box123
- p.o.-box 123
- PO-Box 123
- p-o-box 123
- p-o box 123
- box 123
- Box123
- Box-123

## Negative List
- 123 Box Turtle Circle, Sarasota, FL
- 123 Boxing Pass, San Antonio, TX
- 123 Poblano Lane, Edinburg, TX
- 123 P O Davis Drive, Auburn, AL
- 123 Postal Circle, Manitowish Waters, WI

## Install
```sh
$ npm install pobox-regex
```

## Usage
```js
const poboxRegex = require('pobox-regex');

poboxRegex().test('PO Box 123, Derry, ME');
// => true

poboxRegex().test('123 Box Turtle Circle, Derry, ME');
// => false
```

## Credit
Repurposed as an npm package from [EpicVoyage/pobox-regex](https://github.com/EpicVoyage/pobox-regex)

---
_Source: https://npm.io/package/pobox-regex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
