Log in

View Full Version : How to remove brackets in subtitle text with regular expressions?


orion44
22nd October 2012, 20:43
I am using a program called "Subtitle Edit" which has an option to enter regular expressions.

I have a srt subtitle file, and I need to remove brackets and all the content inside brackets, for example [Andrew]...

What regular expressions commands do I need to enter to accomplish this?


http://i49.tinypic.com/289a3h0.jpg

Nikse555
22nd October 2012, 20:55
"\[.+\]" should work (without quotes, also you can right click in the textbox for regex help)

But you might want the more advanced tool in "Tools" -> "Remove text for hearing impaired"

orion44
22nd October 2012, 21:03
Thank you, Nikse.