This commit is contained in:
Johannes Rieken 2017-10-11 16:20:55 +02:00
parent cb4b27487e
commit 240b0cb4c9

View file

@ -34,7 +34,7 @@ Variable-Transform
Transformations allow to modify the value of a variable before it is being inserted. The definition of a transformation consists of three parts:
1. A regular expression that is matched against the value of a variable, or the empty string when the variable cannot be resolved.
2. A "format string" that allows to reference matching groups from the regular expression. The format string also for conditional inserts and simple modifications.
2. A "format string" that allows to reference matching groups from the regular expression. The format string allows for conditional inserts and simple modifications.
3. Options that are passed to the regular expression
The following sample inserts the name of the current file without its ending, so from `foo.txt` it makes `foo`.