Replace characters between parentheses

Advanced Renamer forum
#1 : 09/08-22 15:44
Baso
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.


09/08-22 15:44
#2 : 10/08-22 08:19
David Lee
David Lee
Posts: 1125
Replace: .*\K(\d{4}) (\d{2}) (\d{2})
with: \1.\2.\3
Use regular expressions


10/08-22 08:19
#3 : 10/08-22 09:30
David Lee
David Lee
Posts: 1125
Reply to #2:
Better...

Replace: \s+(?=[^(\)]*\))
with: .


10/08-22 09:30
#4 : 10/08-22 23:29
Baso
Baso
Posts: 4
Reply to #3:
David;

I was finally able to replace it!

Thanks!


10/08-22 23:29