reglax
☕ Relax and write some Regex
Creates regular expressions that are composable, reusable, and commentable.
Usage
npm install reglax
const matchers flags whole repeat alpha numeric and or wildcard extra capture group look regex } = // or
API
See generated typedoc.
Examples
test/index.spec.js can be a good reference.
// -> /^\d{7}|([A-z]{0,3})|.+?$/gi
// Matches all New York Driver's licenses// -> /[A-z]{1}\d{7}|[A-z]{1}\d{18}|\d{8,9}|\d{16}|[A-z]{8}/