Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

rexer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rexer

Generate matching strings from regular expressions.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

rexer

Generate matching strings from regular expressions.

$ npm install rexer [-g]

Usage

rex <pattern[, pattern[, ...]]>
var rex = require('rexer');
var matches = rex(pattern[, pattern[, ...]]);

Arguments are automatically concatenated, so rex a b is equivalent to rex ab. The same applies when used as a module.

Works for

  • literals,
$ rex "abcd"
["abcd"]
  • character sets
$ rex "[a-c][0-2]"
["a0","a1","a2","b0","b1","b2","c0","c1","c2"]
  • and alternations.
$ rex "(hi|bye) world"
["hi world","bye world"]

Not yet implemented

  • quantifiers,
  • special characters,
  • backreferences (?)
  • and lookaheads (?).

Keywords

rex

FAQs

Package last updated on 08 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts