Bulk Renamer's search and replace option no longer handles capture groups
Description
In previous versions of Thunar, I often used regex capture groups in the bulk renamer. However, earlier today, I tried to use it and found that it was not working.
The matching itself is working (e.g. searching for (.+)
and .+
with the replacement test
using the 'Name and Extension' mode resulted each entry in the 'New Name' column being test
).
However, when I try to reference a capture group (using a backslash with the number of the capture group), e.g. \1
, in the replacement, the 'New Name' column goes completely blank as if the 'Replace With' field were empty or the 'Search For' field matched nothing.
This happens regardless of the position of the reference, e.g. test\1
, \1test, or
te\1st; regardless of the group referenced, e.g.
\0,
\1,
\256` etc.; and regardless of whether the referenced capture group exists (see the previous examples--they were used with only one capture group).
Handling typical escape sequences is not broken so it does not seem to be a problem with general backslash handling.
Versions
I am running thunar 4.18.3 (Xfce 4.18)
on Arch Linux.