1.0.19 • Published 2 years ago
regex-easy v1.0.19
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
2 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago