User Tools

Site Tools


cookbooks:devel:transformations

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
cookbooks:devel:transformations [2021/06/25 10:01]
miconda [{s.after,x}]
cookbooks:devel:transformations [2021/06/25 10:03]
miconda [{s.before,x}]
Line 398: Line 398:
 ==== {s.before,x} ==== ==== {s.before,x} ====
  
-Return the part of the string before the character **x**. If the character **x** is not found, it returns the entire input string.+Return the part of the string before the character **x** searched from the start of the value. If the character **x** is not found, it returns the entire input string.
  
 <code c> <code c>
 "abcdef"{s.before,c} "abcdef"{s.before,c}
 # will return "ab" # will return "ab"
 +</code>
 +
 +==== {s.rbefore,x} ====
 +
 +Return the part of the string before the character **x** searched from the end of the value. If the character **x** is not found, it returns the entire input string.
 +
 +<code c>
 +"abcdefcgf"{s.rbefore,c}
 +# will return "abcdef"
 </code> </code>
 ==== {s.urlencode.param} ==== ==== {s.urlencode.param} ====
cookbooks/devel/transformations.txt ยท Last modified: 2021/06/25 11:05 by miconda