Regular expression for matching South African Cellphone numbers
This project uses node and npm.
$ npm install sa-number-regex
$ # OR
$ yarn add sa-number-regex
const saNumberRegex = require('sa-number-regex')
console.log(saNumberRegex({exact: true}).test('0749585337')) // true
console.log(saNumberRegex({exact: true}).test('0833597957')) // true
console.log(saNumberRegex({exact: true}).test('0845017368')) // true
The exact
argument only match an exact string. Default is global.
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature' 3.Push to the branch: git push origin my-new-feature
- Submit a pull request
MIT