Skip to content

Create regular expressions using chained methods.

License

Notifications You must be signed in to change notification settings

nithesh/regexpbuilderjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

RegExpBuilder v1.0

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.

How to start

There are implementations available for Dart, Javascript, Java, and Python.

Examples

Here are a couple of examples using Javascript:

Money

var regex = r
  .find("$")
  .min(1).digits()
  .then(".")
  .digit()
  .digit()
  .getRegExp();
  
regex.test("$10.00"); // true

Nested patterns

var pattern = r
  .min(1).of("p")
  .min(2).of("q");

var regex = r
  .exactly(2).like(pattern)
  .getRegExp();

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 for each language here.

About

Create regular expressions using chained methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%