Apache NiFi RecordPath Guide
Also available as:
PDF

matchesRegex

Evaluates a Regular Expression against the contents of a String value and returns true if the Regular Expression exactly matches the String value, false otherwise. This function requires 2 arguments: the String to run the regular expression against, and the regular expression to run.

RecordPath

Return value

/name[matchesRegex(., 'John Doe')]

John Doe

/name[matchesRegex(., 'John')]

<returns no results>

/name[matchesRegex(., '.* Doe' )]

John Doe