syntax:functions:keepbefore
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:keepbefore [2015/04/03 18:27] – elenap | syntax:functions:keepbefore [2021/08/14 22:09] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== KeepBefore(text, | ||
- | Returns characters before the first occurrence of specific //string// in //text//. Parameter //string// must not be empty. | ||
- | This function is case-sensitive. | ||
- | ^ Example | + | ====== |
- | | | + | Category: |
- | | keepbefore(' | + | |
- | === See also === | + | \\ |
- | * [[syntax: | + | =====Description===== |
- | * [[syntax: | + | This function returns characters before the first occurrence of // |
+ | |||
+ | \\ | ||
+ | =====Alternative syntax===== | ||
+ | This function can take an optional third numeric parameter to define the instance of // | ||
+ | KeepBefore(text, | ||
+ | |||
+ | \\ | ||
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |text|Text|The text value to search within for the // | ||
+ | |before_string|Text (must //not// be empty)|The text string to search for within // | ||
+ | |instance_num< | ||
+ | < | ||
+ | |||
+ | **Return value type:** Text | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | This function is case sensitive. | ||
+ | |||
+ | //text// and // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | keepbefore(' | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: |
syntax/functions/keepbefore.1428100040.txt.gz · Last modified: 2015/04/03 18:27 by elenap