User Tools

Site Tools


syntax:functions:mirror
no way to compare when less than two revisions

Differences

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


Last revision
syntax:functions:mirror [2016/07/09 09:51] – created dmitry
Line 1: Line 1:
 +===== Mirror(text) =====
  
 +Reverse the order of characters in //text//.
 +
 +^  Example  ^  Result  ^
 +| mirror('Les Misérables' | selbarésiM seL  |
 +
 +This function allows using text functions such as [[syntax:functions:keepbefore]] or [[syntax:functions:keepafter]] to operate with the last occurrence of a substring in a text. See the example below:
 +
 +
 +^  Example  ^  Result  ^
 +| mirror(keepafter(mirror('one-two-three'), '-'))  | one-two  |
syntax/functions/mirror.txt · Last modified: 2021/08/16 00:21 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki