Search

Find The Occurrence Of Pattern

Articles

Use this function to find the occurrence of a regex pattern and return the matching value.

Syntax

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

Parameters

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

Sample

Find The Occurrence Of Pattern (ee239b1e-0cf3-4292-8598-803a85f7727d, id=2, 2)

  • Finds the 2nd occurrence of the pattern ‘id=2’ in the file ‘ee239b1e-0cf3-4292-8598-803a85f7727d’ and returns the matching text ‘id=2’.

Returns

Return Value Description
Text The matching text

To view all the Document functions, click here.

Did you find what you were looking for?