Remove everything within first set of square brackets

A swapping-ground for Regular Expression syntax

Remove everything within first set of square brackets

Postby lukejames1111 » Thu Sep 07, 2017 6:53 pm

I have about 700 files that are named like the following:

[artist][song name].mp3

How do I write a RegEx that removes everything (and including) JUST the first set of square brackets?
lukejames1111
 
Posts: 2
Joined: Thu Sep 07, 2017 6:51 pm

Re: Remove everything within first set of square brackets

Postby KenP » Thu Sep 07, 2017 6:59 pm

Try this :D

RegEx (1)
Match: \[.*\](\[.*\])
Replace: \1
KenP
 
Posts: 199
Joined: Sat Jul 30, 2016 11:25 am

Re: Remove everything within first set of square brackets

Postby lukejames1111 » Thu Sep 07, 2017 7:04 pm

Wow thank you! Such a fast reply too! :D
lukejames1111
 
Posts: 2
Joined: Thu Sep 07, 2017 6:51 pm


Return to Regular Expressions