About EasyMorph Tutorials & Examples Web-help

Replace first instance of a substring


#1

Hi,

Is there a way to replace the first instance of a substring in EasyMorph?

Best


#2

This expression replaces the first occurrence of A with B:

keepbefore([Column], 'A') & 'B' & keepafter([Column], 'A')


#3

Brilliant thank you