This is just a memo for myself to remember all regular expression that I often use:
- Remove sh*t from movie’s subtitles:
\(([^)]+)\)— match everything between parentheses, including them,
[A-Z ]+:— match all uppercase letters followed by colon and a space.
^(.+?),— match everything from the beginning of the string until the first comma.
Probably no use for anyone else except me, sorry! :>