syntax:functions:keepbefore
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
syntax:functions:keepbefore [2015/02/02 21:55] – created dmitry | syntax:functions:keepbefore [2021/03/23 19:07] – dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== KeepBefore(text, | ====== KeepBefore(text, | ||
- | Returns characters before first occurrence of //string// in //text//. Case-sensitive. Parameter //string// must be not empty. | + | Returns characters before |
+ | This function is case-sensitive. | ||
^ Example | ^ Example | ||
| KeepBefore( ' | | 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