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.
There are implementations available for Javascript and Java. Here are a couple of examples using Javascript:var r = require('regexpbuilder');
var regex = r
.find("$")
.min(1).digits()
.then(".")
.digit()
.digit()
.getRegExp();
regex.test("$10.00"); // true
var pattern = r
.min(1).of("p")
.min(2).of("q");
var regex = r
.exactly(2).like(pattern)
.getRegExp();
regex.test("pqqpqq"); // true