syntax:functions:keepbefore
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
syntax:functions:keepbefore [2015/04/03 18:27] – elenap | syntax:functions:keepbefore [2021/03/23 19:08] – dmitry | ||
---|---|---|---|
Line 5: | Line 5: | ||
^ Example | ^ Example | ||
- | | | + | | |
| keepbefore(' | | keepbefore(' | ||
+ | |||
+ | 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 | ||
+ | | keepbefore( ' | ||
+ | | keepbefore( ' | ||
=== See also === | === See also === | ||
* [[syntax: | * [[syntax: | ||
* [[syntax: | * [[syntax: |
syntax/functions/keepbefore.txt · Last modified: 2021/08/14 22:09 by craigt