SUBSTITUTEFIRST

Syntax

SUBSTITUTEFIRST(<string>; <search string>; <new string>)

Description

Substitutes new text for the first occurrence of the old text in a text string.

Examples

StringSearch stringNew stringSUBSTITUTEFIRST returns
searchnomatchreplacementsearch
searchsearchreplacementreplacement
search searchsearchreplacementreplacement search