@msnraju/reg-expressions
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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
}

Readme

Keywords

Package Sidebar

Install

npm i @msnraju/reg-expressions

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

38.8 kB

Total Files

36

Last publish

Collaborators

  • msnraju