eo
eo copied to clipboard
Make replace pattern in `regex.replace` aware of matching groups.
Make it possible to refer to matching groups by index like in the example below:
[] > app
stdout > @
replace
"a1a A2B B3B"
"/((([A-Za-z])[0-9])\g{2})/"
"$2"
Output:
"a1 A2B B3"
For more information see #865 description and Java Matcher