This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cookbooks:devel:transformations [2020/08/31 12:17] miconda [{uri.suri}] |
cookbooks:devel:transformations [2021/02/15 09:32] miconda [{s.count,c}] |
||
---|---|---|---|
Line 375: | Line 375: | ||
<code c> | <code c> | ||
- | abababa" | + | "abababa" |
# will return 4 | # will return 4 | ||
</ | </ | ||
+ | ==== {s.after,x} ==== | ||
+ | Return the part of the string after the character **x**. If the character **x** is not found, it returns empty string. | ||
+ | |||
+ | <code c> | ||
+ | " | ||
+ | # will return " | ||
+ | </ | ||
+ | |||
+ | ==== {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. | ||
+ | |||
+ | <code c> | ||
+ | " | ||
+ | # will return " | ||
+ | </ | ||
==== {s.urlencode.param} ==== | ==== {s.urlencode.param} ==== | ||