sa-company-registration-number-regex
Version:
Regular expression for matching South African Company Registration Number
49 lines (32 loc) • 1.76 kB
Markdown
# sa-company-registration-number-regex
[](https://npmjs.org/package/sa-company-registration-number-regex)
[](https://npmjs.org/package/sa-company-registration-number-regex)
[](https://github.com/RichardLitt/standard-readme)
[](https://npmjs.org/package/sa-company-registration-number-regex)
[](http://makeapullrequest.com)
> Regular expression for matching South African Company Registration Number
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)
## Install
This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).
```sh
$ npm install sa-company-registration-number-regex
$ # OR
$ yarn add sa-company-registration-number-regex
```
## Usage
```js
const saCompanyRegistration = require('sa-company-registration-number-regex')
console.log(saCompanyRegistration({ exact: true }).test('2001/012511/07')) // true
```
The `exact` argument only match an exact string. Default is global.
## Contribute
1. Fork it and create your feature branch: git checkout -b my-new-feature
2. Commit your changes: git commit -am 'Add some feature'
3. Push to the branch: git push origin my-new-feature
4. Submit a pull request
## License
MIT