1.0.3 • Published 5 years ago

@msnraju/reg-expressions v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

regular-expression

Custom implementation of regular expressions

Installation

npm install @msnraju/regular-expressions

Usage

import { RegExpression } from '@msnraju/reg-expressions';

const expr = new RegExpression('OBJECT (\\w*) ([\\d]*) (.*)');
const match = expr.match('OBJECT Table 18 Customer');
console.log(JSON.stringify(match, null, 2));

Output

{
  "0": "OBJECT Table 18 Customer",
  "1": "Table",
  "2": "18",
  "3": "Customer",
  "length": 40
}
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago