Renamer Icon

Using groups and backreferences with regular expressions

You can capture groups of a string with (…) and then back reference the groups with $1, $2, … where $1 references the first group, $2 the second group and so on.

Using groups and backreferences example:

For example, to rename files "img_001.jpg", "img_002.jpg", ... to "01 - Photo.jpg", "02 - Photo.jpg", ...:
Step 1

Drag in the files.

Step 2

Click add-renamer.tiff and choose Find & Replace.

Step 3

Select “Regular expression”.

Step 4

Type “img_0(\d\d)” in the “Find” box.

Step 5

Type “$1 – Photo” in the “Replace” box.

Step 6

Click Apply.

Related Topics

regular expressions