--- a/relpipe-data/examples-rename-groups-backreferences.xml Fri Nov 26 22:14:18 2021 +0100
+++ b/relpipe-data/examples-rename-groups-backreferences.xml Mon Feb 21 00:43:11 2022 +0100
@@ -12,8 +12,15 @@
This tool also support regex groups and backreferences. Thus we can use parts of the matched string in our replacement string:
</p>
- <m:pre jazyk="bash"><![CDATA[relpipe-in-cli generate r 1 a string "some string xxx_123 some zzz_456 other" \
- | relpipe-tr-sed 'r' 'a' '([a-z]{3})_([0-9]+)' '$2:$1' \
+ <m:pre jazyk="bash"><![CDATA[relpipe-in-cli \
+ --relation 'r' \
+ --attribute 'a' string \
+ --record 'some string xxx_123 some zzz_456 other' \
+ | relpipe-tr-sed \
+ --relation 'r' \
+ --attribute 'a' \
+ --value '([a-z]{3})_([0-9]+)' \
+ --replacement '$2:$1' \
| relpipe-out-tabular]]></m:pre>
<p>Which would convert this:</p>