-
Notifications
You must be signed in to change notification settings - Fork 2
List of methods to implement
Whole methods should "quote" value expecting "add". Use regex method to quote if your language gives it. If not, you must find a way to quote values before to be added in compilable expression.
Those methods should be implemented:
Append a transformed value to internal expression that will be compiled.
As possible, this method should be "private".
append "^" at start of expression
append "$" at end of expression
"(?:" + value + ")"
see "find" method
0 or 1 times
"(?:" + value + ")?"
Matches everything
(?:.*)
Matches everything excepting letter in given value
"(?:[^" + value + "]*)"
Matches at least one char
(?:.+)
Matches at least one char not in value
"(?:[^" + value + "]+)"
Return replaced string
Matches any linebreak
"(?:(?:\n)|(?:\r\n))"
see lineBreak
Should match tab char
"\t"
Matches at least one word
"\w+"
Matches any char in value
"(?:[" + value + "])"
see AnyOf
To be discuss
Append modifier "i"
Remove modifier "g" if "true", else append modifier "g"
If true, remove modifier "m"
to be discuss => issue #2
Split expression with "|", to be discuss
Initiate capture
Stop capturing elements
Matches whitespace \\s
.
Repeats the previous at least once.