cookbooks:devel:transformations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cookbooks:devel:transformations [2021/06/07 19:36] – [{line.at,pos}] miconda | cookbooks:devel:transformations [2021/06/25 08:03] – [{s.before,x}] miconda | ||
---|---|---|---|
Line 381: | Line 381: | ||
==== {s.after,x} ==== | ==== {s.after,x} ==== | ||
- | Return the part of the string after the character **x**. If the character **x** is not found, it returns empty string. | + | Return the part of the string after the character **x** searched from the start of the value. If the character **x** is not found, it returns empty string. |
<code c> | <code c> | ||
Line 388: | Line 388: | ||
</ | </ | ||
+ | ==== {s.rafter, | ||
+ | |||
+ | Return the part of the string after the character **x** searched from the end of the value. If the character **x** is not found, it returns empty string. | ||
+ | |||
+ | <code c> | ||
+ | " | ||
+ | # will return " | ||
+ | </ | ||
==== {s.before, | ==== {s.before, | ||
- | 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> | ||
" | " | ||
# will return " | # will return " | ||
+ | </ | ||
+ | |||
+ | ==== {s.rbefore, | ||
+ | |||
+ | 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> | ||
+ | " | ||
+ | # will return " | ||
</ | </ | ||
==== {s.urlencode.param} ==== | ==== {s.urlencode.param} ==== |
cookbooks/devel/transformations.txt · Last modified: 2022/04/08 16:08 by miconda