Skip to content
jehna edited this page Jul 20, 2013 · 22 revisions

Here you can find the API documentation for Verbal Expressions

What is Verbal Expresstions?

Verbal Expressions is a small JavaScript library that allows you to write regular expressions in natural language.

Basic usage

Basic usage of Verbal Expressions is trough a singleton called VerEx(), that creates a new expression for you:

var myExpression = VerEx();

##API

Modifiers

  • .anything()
  • .anythingBut( value )
  • [.endOfLine()](wiki/.endOfLine())
  • [.find( value )](wiki/.find(-value-))
  • .maybe()
  • [.startOfLine()](wiki/.startOfLine())
  • [.then( value )](wiki/.then(-value-))

Special characters and groups

  • .any( value )
  • .anyOf( value )
  • .br()
  • .lineBreak()
  • .range( from, to )
  • .tab()
  • .word()

Modifiers

  • .withAnyCase()
  • .stopAtFirst()
  • .searhOneLine()

Functions

  • .replace( source, value )

Other

  • [.add( expression )](wiki/.add(-expression-))
  • .multiple( value )
Clone this wiki locally