Apache NiFi RecordPath Guide
Also available as:
PDF

substringAfterLast

Returns the portion of a String value that occurs after the last occurrence of some other value.

RecordPath

Return value

substringAfterLast( /name, ' ' )

Doe

substringAfterLast( /name, 'o' )

e

substringAfterLast( /name, '' )

John Doe

substringAfterLast( /name, 'xyz' )

John Doe