Page 1 of 1

how to remove a group of numbers in brackets

PostPosted: Fri Jun 26, 2020 8:19 pm
by heartradiousa
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

Re: how to remove a group of numbers in brackets

PostPosted: Sat Jun 27, 2020 1:05 pm
by therube
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]