Apache NiFi RecordPath Guide
Also available as:
PDF

replace

Replaces all occurrences of a String with another String.

RecordPath

Return value

replace( /name, 'o', 'x' )

Jxhn Dxe

replace( /name, 'o', 'xyz' )

Jxyzhn Dxyze

replace( /name, 'xyz', 'zyx' )

John Doe

replace( /name, 'Doe', /workAddress/city )

John New York