r/programmingrequests • u/Sarlo10 • Apr 29 '19
solved Script that deletes every () or [] bracket and what words are inside.
Basically I'm sick of every "subtitle" thing is most subtitles are in reality closed captions which describe all the noises like [DRAGON SHRIEKS] or (LOUD CHATTER). Which is kinda annoying. So searching for subtitles is of no use to filter out all the closed captions.
Also could it also remove like " Tyrion: " like everything before : including the : Not really nessesary but it's a nice plus.
If anyone could write a script and it would work on ghostbin.com/paste/pcmsr iid be very grateful. Thanks.
5
Upvotes
5
u/SamSlate Apr 29 '19
regex:
\[.*\]|\(.*\)•
u/Aareon Apr 30 '19 edited Apr 30 '19
Since Ghostbin will be shutting down in May 2019, I took the liberty of mirroring OPs link above in a few different places. Just in case.
Mirror 1: hastebin
Mirror 2: pastebin
Mirror 3: 0bin
Hopefully somewhere down the line, someone finds this helpful.
4
u/[deleted] Apr 30 '19
[removed] — view removed comment