Does Renamer support backreferences in regular expressions?
Yes. For Renamer version 4.0.1 and later you can capture groups of a string with (…) and then backreference the groups with $1, $2, … where 1 is the first group and so on. For example if you want to rename files “img_001.jpg”, “img_002.jpg”, “img_00n.jpg” to “01 – Photo.jpg”, “02 – Photo.jpg”, 0n – Photo.jpg”: • Click Search & Replace • In “Search for:” enter “img_0(\d\d)” • In “Replace with:” enter “\1 – Photo” • Select the “Regular expression” tick box • Select “Name only” Note: for Renamer version 4.0 and earlier you can backreference with \1, \2, …
Related Questions
- Does Javascript support conditional if/then regular expressions?
- Does Renamer4Mac support backreferences in regular expressions?
- Does Renamer4Mac support backreferences in regular expressions?
- Does Renamer support backreferences in regular expressions?
- Is there support for regular expressions in Tea?
- Is there support for regular expressions in Tea?