2022.2

Table Of Contents
i:Enablescase-insensitivematching.Bydefault,case-insensitivematchingassumesthatonlychar-
actersintheUS-ASCIIcharsetarebeingmatched.Unicode-awarecase-insensitivematchingcanbe
enabledbyspecifyingtheUNICODE_CASEflag(u)inconjunctionwiththisflag.
s:Enablesdotallmode.Indotallmode,theexpression.matchesanycharacter,includingalineter-
minator.Bydefaultthisexpressiondoesnotmatchlineterminators.
L:Enablesliteralparsingofthepattern.Whenthisflagisspecified,thentheinputstringthatspecifies
thepatternistreatedasasequenceofliteralcharacters.Metacharactersorescapesequencesinthe
inputsequencewillbegivennospecialmeaning.TheCASE_INSENSITIVE(i)andUNICODE_CASE
(u)flagsretaintheirimpactonmatchingwhenusedinconjunctionwiththisflag.Theotherflagsbecome
superfluous.
m:Enablesmultilinemode.Inmultilinemode,theexpressions^and$matchjustafterorjustbefore,
respectively,alineterminatorortheendoftheinputsequence.Bydefault,theseexpressionsonly
matchatthebeginningandtheendoftheentireinputsequence.
u:EnablesUnicode-awarecasefolding.Whenthisflagisspecified,thencase-insensitivematching,
whenenabledbytheCASE_INSENSITIVEflag(i),isdoneinamannerconsistentwiththeUnicode
Standard.Bydefault,case-insensitivematchingassumesthatonlycharactersintheUS-ASCIIcharset
arebeingmatched.
U:EnablestheUnicodeversionofPredefinedcharacterclassesandPOSIXcharacterclasses.When
thisflagisspecified,thenthe(US-ASCIIonly)PredefinedcharacterclassesandPOSIXcharacter
classesareinconformancewithUnicodeTechnicalStandard#18:UnicodeRegularExpressionAnnex
C:CompatibilityProperties.
d:EnablesUnixlinesmode.Inthismode,onlythe'\n'lineterminatorisrecognizedinthebehaviorof.,
^,and$.
leftConstraint
Numberindicatingtheleftlimitfromwhichthesearchisperformed.Thisisexpressedincharactersfor
atextfile,orinmillimetersforaPDFfile.
rightConstraint
Numberindicatingtherightlimittowhichthesearchisperformed.Thisisexpressedincharactersfora
textfile,orinmillimetersforaPDFfile.
Examples
data.findRegExp(/\d{3}-[A-Z]{3}/,"gi",50,100);
or
Page 388