Skip to content

List of methods to implement

Patrice Ferlet edited this page Aug 8, 2013 · 11 revisions

This methods should be implemented:

add

append a transformed value to internal expression that will be compiled

startOfLine

append "^" at start of expression

endOfLine

append "$" at end of expression

find

"(?:" + value + ")"

then (shorthand for find)

see "find" method

maybe

0 or N times "(?:" + value + ")?"

anything

(?:.*)

anythingBut

"(?:[^" + value + "])"

something

(?:.+)

somethingBut

"(?:[^" + value + "]+)"

replace

Return replaced string

lineBreak

"(?:(?:\n)|(?:\r\n))"

br (shorthand for lineBreak)

see lineBreak

tab

"\t"

word

"\w+"

anyOf

"(?:[" + value + "])"

any (shorthand for anyOf)

see AnyOf

range

To be discuss

withAnyCase

Append modifier "i"

stopAtFirst

to be discuss

searchOneLine

If true, remove modifier "m"

multiple

to be discuss

or

Split expression with "|", to be discuss

begindCapture

Initiate capture

endCapture

Stop capturing elements

Clone this wiki locally