happypdf / findLastMatch
Function: findLastMatch()
ts
function findLastMatch(value, regex): {
match: RegExpMatchArray | undefined;
pos: number;
};Defined in: src/utils/strings.ts:130
Parameters
| Parameter | Type |
|---|---|
value | string |
regex | RegExp |
Returns
ts
{
match: RegExpMatchArray | undefined;
pos: number;
}match
ts
match: RegExpMatchArray | undefined = lastMatch;pos
ts
pos: number = position;