Skip to content

happypdf / findLastMatch

Function: findLastMatch()

ts
function findLastMatch(value, regex): {
  match: RegExpMatchArray | undefined;
  pos: number;
};

Defined in: src/utils/strings.ts:130

Parameters

ParameterType
valuestring
regexRegExp

Returns

ts
{
  match: RegExpMatchArray | undefined;
  pos: number;
}

match

ts
match: RegExpMatchArray | undefined = lastMatch;

pos

ts
pos: number = position;

MIT Licensed. A fork of pdf-lib.