Home

RegEx

Regular expression engine.

Support for following matches:

Support for following special patterns:

Operations

New

Default constructor

New(input:String)
Parameters
NameTypeDescription
inputStringregex pattern

Find

Finds all occurrences

method : public : native : Find(input:String) ~ Vector
Parameters
NameTypeDescription
inputStringstring to match against

Return
TypeDescription
Vectorvector of string matches

FindFirst

Matches the first occurrence

method : public : native : FindFirst(input:String) ~ String
Parameters
NameTypeDescription
inputStringstring to match against

Return
TypeDescription
Stringmatched string if found, empty string otherwise

Match

Matches as much of the string as possible

method : public : Match(input:String) ~ String
Parameters
NameTypeDescription
inputStringstring to match against

Return
TypeDescription
Stringmatched string if found, empty string otherwise

Matches as much of the string as possible

method : public : Match(input:String, offset:Int) ~ String
Parameters
NameTypeDescription
inputStringstring to match against
offsetIntoffset into the to match against

Return
TypeDescription
Stringmatched string if found, empty string otherwise

MatchExact

Looks for an exact regex match

method : public : MatchExact(input:String) ~ Bool
Parameters
NameTypeDescription
inputStringstring to match against

Return
TypeDescription
Booltrue if exact, false otherwise

ReplaceAll

Replaces all occurrences of the given string

method : public : native : ReplaceAll(input:String, replace:String) ~ String
Parameters
NameTypeDescription
inputStringstring to match against
replaceStringstring to replace the match with

Return
TypeDescription
Stringreplaced string

ReplaceFirst

Replaces the first occurrence with the given string

method : public : native : ReplaceFirst(input:String, replace:String) ~ String
Parameters
NameTypeDescription
inputStringstring to match against
replaceStringstring to replace the match with

Return
TypeDescription
Stringreplaced string