Maven module :un.api : api-common :
Class : un.api.regex.Regex
Extends/Implements : -
Subclasses : -

This regex implementation uses an NFA approach.
TODO DFA

there are plenty of docs on regex, those are just the most useful I found :
http://en.wikipedia.org/wiki/Thompson's_construction_algorithm
http://en.wikipedia.org/wiki/Nondeterministic_finite_automaton
http://swtch.com/~rsc/regexp/regexp1.html


@author Johann Sorel


Variables : -
Functions : split, replace, compile, compile, compilePostfix, toNFA, toNFA, toNFA, postfixtoNFA



public Chars[] split (Chars text, Chars exp)

public Chars replace (Chars text, Chars exp, Chars replacement)


Compile regular expression written in standard syntax.
param  exp regex expression
return  RegexExec
public RegexExec compile (Chars exp)


Compile regular expression written in standard syntax.
param  exp regex expression
param  matchName name of the nfa state result
return  RegexExec
public RegexExec compile (Chars exp, Chars matchName)


Compile regular expression written in postfix syntax.
param  exp regex expression
return  RegexExec
public RegexExec compilePostfix (Chars exp)

public NFAState toNFA (Chars exp)

public NFAState toNFA (Chars exp, Chars matchName)

public NFATemp toNFA (CharIterator ite, boolean skipGroupEnd)

public NFAState postfixtoNFA (Chars exp)