how to remove a group of numbers in brackets

Bulk Rename Utility How-To's

how to remove a group of numbers in brackets

Postby heartradiousa » Fri Jun 26, 2020 8:19 pm

Sso I need a scrip to look for the group of numbers in the bracket and they need to be removed Sanctus Real - On Fire [1592226] to have the final output look like this Sanctus Real - On Fire can you please assist

I have gotten my Project completed and this is the final step and wish to thank every for all the help you you have given me we have sorted over 35,000 tracks of music.

thanks
heartradiousa
 
Posts: 18
Joined: Thu Mar 01, 2018 11:38 pm

Re: how to remove a group of numbers in brackets

Postby therube » Sat Jun 27, 2020 1:05 pm

This may get it.

1:RegEx
Code: Select all
Match:  (.*)(\s\[\d+\])(.*)
Replace:  \1\3


Match anything, up to a space, followed by a bracket & any number of digits & a closing bracket, then match everything else.
Keep all but that intervening part (space [numbers]).

Code: Select all
movie, the [1995].mp4 ->
movie, the.mp4
The Straight Story 1999 [x264][T] ->
The Straight Story 1999 [x264][T]
therube
 
Posts: 865
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To