textAfter

Modified on Wed, 16 Aug 2023

Description

Extract the text after a specified substring in a string.

Syntax

textAfter(input, substring)

Parameters

Input ParameterTypeDescription
inputstringThe input string to search within
substringstringThe substring to find and extract text after

Return value

Type
string

Sample

ExampleResultDescription
textAfter('Invoice Number 1234', 'Number ')'1234'The text after 'Number '
textAfter('$1234', '$')'1234'The text after '$
textAfter('$1234', 'Invoice')''Return empty string if substring is not found

To view all the String functions, click here.

See Also