User Tools

Site Tools


syntax:functions:keepafter

KeepAfter(text, string)

Returns characters after the first occurrence of specific string in text. Parameter string must not be empty. This function is case-sensitive.

Example Result
keepafter( 'New York', 'Y' ) ork
keepafter( 'Food&Beverage', '&' ) Beverage

The functions can have the optional third parameter with the index of the separator. The index can be negative - in this case, it's counted from the end of the text.

Example Result
keepafter( 'a/b/c/d', '/', 2) 'c/d'
keepafter( 'a/b/c/d', '/', -1) 'd'

See also

syntax/functions/keepafter.txt · Last modified: 2021/03/23 19:08 by dmitry