1.0.19 • Published 3 years ago

regex-easy v1.0.19

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

Simple and easy regular expression utility for node

Using npm:

$ npm i -g npm
$ npm i --save regex-easy

In Node.js:

// Load the package
let re = require('regex-easy');

Usage

  • Regular expression usage
let r = new re.regex(pattern[string], flags[optional|string], escape[optional|boolean]);

// Methods
r.exec(string) //executes a search for a match in a string. It returns an array of information or null on a mismatch.

r.test(string) // method that tests for a match in a string. It returns true or false.
  • Independent Methods
re.escape(string); // Escaping user input that is to be treated as a literal string within a regular expression—that would otherwise be mistaken for a special character

To read more about regular expressions

About

Pull requests are always welcome. For bugs and feature requests, please create an issue.

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm i --save regex-easy && cd node_modules/regex-easy/ && npm test && cd ../../

Author

Sameer Saini

Let's connect

1.0.19

3 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago