Rename with regular expression

how to remove square brackets and text between them from the end of file or folder name?
for example:
c:\folder_name [useless text]
to
c:\folder_name

A simple wildcard is easiest:


couldnt expect such turn :slight_smile:, thanks a lot !

@zodna In case that is a problem, you should note that if there is something in the name after the brackets, that rename pattern will also kill it, e.g.
Keep [Keep] Tail
becomes
Keep

Here is a regex preset that preserves file names with a "tail" after the brackets:


Btw in the Old Name field, the initial "|" is the cursor (captured by the screenshot), it's not in the regex.

[quote="playful"]@zodna In case that is a problem, you should note that if there is something in the name after the brackets, that rename pattern will also kill it, e.g.
Keep [Keep] Tail
becomes
Keep[/quote]

I think you've found a bug in the beta. :slight_smile:

Oh, great!