Class Index | File Index

Classes


Class RXBuild.RegExp

The RXBuild.RegExp class holds a regular expression as input by the user, and connects with the various operations
Defined in: regex_controller.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
RXBuild.RegExp(pattern, g, i, m)
Creates a new instance of RXBuild.RegExp
Field Summary
Field Attributes Field Name and Description
 
 
Gets the options selected by the user.
 
Gets the regular expression as input by the user
Method Summary
Method Attributes Method Name and Description
 
Compiles the regexp using the custom parser, and returns the expressions DOM, or throws a string with errors encountered during parse
 
Generates and returns an equivalent Bash/Grep code
 
Generates and returns an equivalent C# code
 
Generates and returns an equivalent JavaScript code
 
Generates and returns an equivalent Perl code
 
Generates and return an equivalent Ruby code
Class Detail
RXBuild.RegExp(pattern, g, i, m)
Creates a new instance of RXBuild.RegExp
Parameters:
{String} pattern
The regular expression as set by the user
{Boolean} g
True if the pattern is global
{Boolean} i
True if the pattern is case insensitive
{Boolean} m
True if the pattern is in multiline mode
Field Detail
CodeBuilders

{Options} options
Gets the options selected by the user. This object has the properties g, m and i set to true if the corresponding option is active. There is also a str property with the options as a string (eg.: "gi").

{String} pattern
Gets the regular expression as input by the user
Method Detail
{Matcher} compile()
Compiles the regexp using the custom parser, and returns the expressions DOM, or throws a string with errors encountered during parse
Returns:
{Matcher} The root compiled matcher if the pattern was valid

{String} getBashGrepCode()
Generates and returns an equivalent Bash/Grep code
Returns:
{String} A snippet of Bash/Grep code that would run this regular expression.

{String} getCSCode()
Generates and returns an equivalent C# code
Returns:
{String} A snippet of C# code that would run this regular expression.

{String} getJSCode()
Generates and returns an equivalent JavaScript code
Returns:
{String} A snippet of JavaScript code that would run this regular expression.

{String} getPerlCode()
Generates and returns an equivalent Perl code
Returns:
{String} A snippet of Perl code that would run this regular expression.

{String} getRubyCode()
Generates and return an equivalent Ruby code
Returns:
{String} A snippet of ruby code that would run this regular expression.

Documentation generated by JsDoc Toolkit 2.0.2 on Mon May 02 2016 20:27:56 GMT+0200 (CEST)