User Tools

Site Tools


syntax:functions:mirror

Differences

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

Link to this comparison view

syntax:functions:mirror [2016/07/09 13:51] (current)
dmitry created
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: 2016/07/09 13:51 by dmitry