101
Support and Feedback / Regex backreference in MultiRename?
« on: July 23, 2020, 16:59:14 »
I'm wondering if I should be able to use a backreference in MR?
eg to change S27 to Session 27
I've tried \1 in a variety of places vs the "" & it won't call it, only giving bad chars warning in the rename preview pane.
The ECMA REGEX script syntax linked to elsewhere says
\int |backreference |the result of the submatch whose opening parenthesis is the int-th (int shall begin by a digit other than 0).
(subpattern) |Group |Creates a backreference.
(?:subpattern) |Passive group |Does not create a backreference.
eg to change S27 to Session 27
Code: [Select]
(S\d+)|" - Session "\1I've tried \1 in a variety of places vs the "" & it won't call it, only giving bad chars warning in the rename preview pane.

The ECMA REGEX script syntax linked to elsewhere says
\int |backreference |the result of the submatch whose opening parenthesis is the int-th (int shall begin by a digit other than 0).
(subpattern) |Group |Creates a backreference.
(?:subpattern) |Passive group |Does not create a backreference.



