Keep name flanked by two symbols and remove other

Bulk Rename Utility How-To's

Keep name flanked by two symbols and remove other

Postby Jakov » Sun Nov 26, 2023 7:05 pm

Hi,
Suppose I have a file name with this pattern or something similar
BRU - [HowTo1963] Name (en)
How to keep the name flanked by two symbols, in our case ] and ( keep the name only and remove the others
so BRU - [HowTo1963] Name (en) -----------------> Name.
Thanks
Jakov
 
Posts: 54
Joined: Sat May 23, 2020 1:29 am

Keep text inbetween "]" and "("

Postby Luuk » Mon Nov 27, 2023 12:18 am

With RegEx(1) the "Match" and "Replace" can be like...
.*] *(.+?) *\(.*
\1

With the checkmark for "Simple", might also can try...
%1] %2 (%3
%2

The Regular version uses * to make any spaces optional, since * says 0-or-more.
The "Simple" version will always want the space like... "] " and " (".
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Keep name flanked by two symbols and remove other

Postby Jakov » Mon Nov 27, 2023 4:28 am

Thank so much Luuk :)
Jakov
 
Posts: 54
Joined: Sat May 23, 2020 1:29 am


Return to How-To