Regex in tagger script

Tags: #<Tag:0x00007f29fff56b00> #<Tag:0x00007f29fff569c0>


I am trying to use tagger script to create a sort tag. The usual way of doing this is by swapping two matching groups in regex, e.g. (.)\s(\w)$ => $2, $1
However I can’t find a way to do this with $rreplace() - is it possible to access matching groups in the “replace” parameter and if so, how?



Ah, thanks - I did search but didn’t find that. \2,\1