User Tools

Site Tools


syntax:functions:keepbefore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
syntax:functions:keepbefore [2015/02/02 21:55] – created dmitrysyntax:functions:keepbefore [2015/03/27 14:05] elenap
Line 1: Line 1:
 ====== KeepBefore(text, string) ====== ====== KeepBefore(text, string) ======
  
-Returns characters before first occurrence of //string// in //text//. Case-sensitive. Parameter //string// must be not empty.+Returns characters before the first occurrence of specific //'string'// in a given //'text'//. Case-sensitive. Parameter //string// must be not empty.
  
 ^  Example  ^  Result  ^ ^  Example  ^  Result  ^
 |  KeepBefore( '5pm', 'pm' )  |  '5'  | |  KeepBefore( '5pm', 'pm' )  |  '5'  |
 +|  keepbefore('October 2015','2015' |  'October '  |
  
 === See also === === See also ===
   * [[syntax:functions:keepafter]]   * [[syntax:functions:keepafter]]
   * [[syntax:functions:removestart]]   * [[syntax:functions:removestart]]
syntax/functions/keepbefore.txt · Last modified: 2021/08/14 22:09 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki