parenthetical expression removal

Advanced Renamer forum
#1 : 20/07-24 14:31
srenovo
Posts: 1
How can I remove part of file names surrounded by parenthesis contain four random numbers? e.g. (1984) and in the next file name it might be (1178). I have hundreds of these.
#2 : 20/07-24 16:01
Miguel
Posts: 140
Reply to #1:
Hi.
You can use the Replace method:

Text to replace: (*) "Add a space after the ).
Replace with: Nothing

Miguel
#3 : 21/07-24 00:39
Delta Foxtrot
Posts: 292
Reply to #2:

Hey Miguel,

I'm curious why you specified a space after the (*)? Didn't notice that specified in the original post. Just wondering...

You could also replace \(\d\d\d\d\) with nothing, using regex. Not strictly necessary, but specifically only searches for 4 digits in the parens.

EDIT: Miguel, I've been meaning to ask, how's your back doing? I hope you're feeling better!
END EDIT

Best,
DF

edited: 21/07-24 00:44
#4 : 21/07-24 01:24
Miguel
Posts: 140
Reply to #3:
Hi DF.
Because when delete the parenthesis and its content generate an extra space and then you have double space. Adding it yo the REPLACE method fix It.
My back pain is something that come and go. Now i am fine. Thank you for your interest.

Miguel.