Module: libs/cursorless-engine/util/regex
Interfaces
Functions
leftAnchored
▸ Const
leftAnchored(arg
): U
Parameters
Name | Type |
---|---|
arg | RegExp |
Returns
U
Defined in
libs/cursorless-engine/util/regex.ts:31
matchAll
▸ matchAll<T
>(text
, regex
, mapfn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
text | string |
regex | RegExp |
mapfn | (v : RegExpMatchArray , k : number ) => T |
Returns
T
[]
Defined in
libs/cursorless-engine/util/regex.ts:33
matchText
▸ matchText(text
, regex
): MatchedText
[]
Parameters
Name | Type |
---|---|
text | string |
regex | RegExp |
Returns
Defined in
libs/cursorless-engine/util/regex.ts:58
rightAnchored
▸ Const
rightAnchored(arg
): U
Parameters
Name | Type |
---|---|
arg | RegExp |
Returns
U
Defined in
libs/cursorless-engine/util/regex.ts:30
testRegex
▸ testRegex(regex
, text
): boolean
Parameters
Name | Type |
---|---|
regex | RegExp |
text | string |
Returns
boolean
Defined in
libs/cursorless-engine/util/regex.ts:45