Create regular expressions using chained methods.
Switch branches/tags
Nothing to show
Clone or download


RegExpBuilder integrates regular expressions into the programming language, thereby making them easy to read and maintain. Regular Expressions are created by using chained methods and variables such as arrays or strings.


Here are a couple of examples using Javascript:
var r = require('regexpbuilder');


var regex = r
regex.test("$10.00"); // true

Nested patterns

var pattern = r

var regex = r

regex.test("pqqpqq"); // true

API documentation

RegExpBuilder can represent literally every possible regular expression using methods such as either(), or(), behind(), asGroup() and so on. You can find the API documentation here.