User Tools

Site Tools


syntax:functions:keepafter

This is an old revision of the document!


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.1616540864.txt.gz · Last modified: 2021/03/23 19:07 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki