Search results
131 packages found
Regular expression for matching IP addresses (IPv4 & IPv6). This is a fork of sindresorhus/ip-regex, but with CommonJS support.
Parse a string into an array of objects with `name`, `email` and `url` properties following npm conventions. Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.
Special RegExp characters, useful for escaping.
Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.
Check if a string has ANSI escape codes
RegExp API for Humans!
Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.
- RegExp
- assemble
- atpl
- cache
- compile
- consolidate
- content
- data
- delimiters
- delims
- demlim
- demlimiter
- demlimiters
- demlims
- View more
Strip ANSI colors, attributes from a string
REXS is a language for creating regular expressions. This library can compile REXS to a regular expression.
- rexs
- re
- reg
- regex
- regular
- expression
- expressions
- regular expression
- regular expressions
- language
- lang
- compiler
- compile
- builder
- View more
Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a str
Return `true` if a file extension matches the given string, array of strings, or RegExp pattern.
Functions for fantastically fast file filtering, and more things that start with 'f'.
Extract a string in the given range (e.g. from line X to line Y).
Regex Parser (fork from regexp)
Regular expression for matching ANSI escape codes
A regular expression library for node.js
Format regex with string substitutions
Common regular expressions