I'm puzzling over this for few hours, also checked the forum but couldn't find any answer that would point me in the right direction.
I'm trying to replace digits in the filenames of pictures with different digits to obfuscate the original digits but in a way, to be able to go back if I have to.
So I would like to replace the filenames like:
- H10013_20140910125148741.jpg
H10013_20140910125149287.jpg
in a way, that 0 would be replaced with 6,
1 with 3,
2 with 9,
3 with 7,
4 stays as 4,
5 with 2,
6 with 0,
7 with 1,
8 with 5
and 9 with 8.
This way, the final names would look like:
- H36637_96346836392345743.jpg
H36637_96346836392348951.jpg
I don't actually know what would be better way to achieve this: RegEx or JavaScript. Anything actually would be nice to get this done.
All the best
Maciej