Am 22.02.2018 um 19:57 schrieb Allin Cottrell:
'repl' does not have to be an "inert" string
literal; it can be, for
example, an expression that refers to matches in @match. Example:
<hansl>
string test = "-100.35, A-Z, 1998-02-13"
string mod = regsub(test, "([0-9]+)-([0-9]+)-([0-9]+)", "\1\2\3")
print mod
</hansl>
? print mod
-100.35, A-Z, 19980213
Thanks, very useful!
cheers,
sven