Search

Find The Occurrence Of Pattern

Articles

Use this function to find the occurrence of the text matching a regex pattern.

Syntax

Find The Occurrence Of Pattern (fid, regex_pattern, occurrence)

Parameters

Input Parameter Name Description
fid OutputXmlFID passed from the Doc Reader node
regex_pattern Regular expression to search
occurrence Occurrence of the pattern

Returns

Return Value Description
Text The matching text

Sample

Find The Occurrence Of Pattern (FID, www.[A-Z]+\.(\.?[A-Z]+)+, 2)

  • Finds the 2nd occurrence of the pattern matching www.<text>.<text> in the PDF having File ID FID.

The occurrence is considered only when the keyword has an exact match in the document.

To view all the Document functions, click here.

Did you find what you were looking for?