#1 : 09/08-22 15:44 Baso
Posts: 4
|
Hi, I'm trying to replace spaces with dots within the parentheses in a large list of files.
Files: image - (2021 09 27) T132752.287.png Microsoft Minesweeper 03 05 (2020 04 16) 10 p. m.jpg unnamed - (2022 04 10) T004157.232.jpg etc... Goal: image - (2021.09.27) T132752.287.png Microsoft Minesweeper 03 05 (2020.04.16) 10 p. m.jpg unnamed - (2022.04.10) T004157.232.jpg I was trying Lookahead (regex): Search: \ (=?(\(\d{4})) Replace: . <= dot I also tried to create groups with the spaces but it didn't work either: Search: \d{4}(\ )\d{2}(\ )\d{2} Replace: \.\. I'll apreciate any help. Thanks. |
#2 : 10/08-22 08:19 David Lee
Posts: 1125
|
Replace: .*\K(\d{4}) (\d{2}) (\d{2})
with: \1.\2.\3 Use regular expressions |
#3 : 10/08-22 09:30 David Lee
Posts: 1125
|
Reply to #2:
Better... Replace: \s+(?=[^(\)]*\)) with: . |
#4 : 10/08-22 23:29 Baso
Posts: 4
|
Reply to #3:
David; I was finally able to replace it! Thanks! |