Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
^\s*(\d+:\d+:\d+,\d+)(?:\s*-{2,3}>\s*)(\d+:\d+:\d+,\d+)\s*\n([\s\S]*?(?:^\s*$|\d+:\d+:\d+,\d+|^\s*\d+\s*\n))
"
gm
Input 1
New
1 00:00:02,160 --> 00:00:04,994 You really don't remember what happened last year? 2 00:00:06,440 --> 00:00:07,920 - School. Now. - I dropped out. 00:00:08,120 --> 00:00:10,510 - Get your diploma, I'll get mine. - What you doing? 00:00:10,680 --> 00:00:13,514 - Studying. - You taking your GED? All right, Fi. 5 00:00:13,680 --> 00:00:14,716 Estefania, Fiona. 6 00:00:14,880 --> 00:00:16,599 You married a drug lord's daughter? 7 00:00:16,760 --> 00:00:18,274 I'm not in love with her. 8 00:00:18,440 --> 00:00:21,433 She doesn't love you either. She's got this other guy Marco. 9 00:00:21,600 --> 00:00:23,717 Marco, you're me now, take my identity. 10 00:00:23,880 --> 00:00:26,156 If Este's dad comes looking, she'll be married. 11 00:00:26,320 --> 00:00:27,993 We can't have sex anymore. 12 00:00:28,160 --> 00:00:31,676 - I'm pretty sure that Jody's gonna propose. - You're better than this guy. 13 00:00:31,880 --> 00:00:35,078 Stay the fuck away from me and stay the fuck away from
Substitution
1 00:00:02,160 --> 00:00:04,994 You really don't remember what happened last year? 2 00:00:06,440 --> 00:00:07,920 - School. Now. - I dropped out. 00:00:08,120 --> 00:00:10,510 - Get your diploma, I'll get mine. - What you doing? 00:00:10,680 --> 00:00:13,514 - Studying. - You taking your GED? All right, Fi. 5 00:00:13,680 --> 00:00:14,716 Estefania, Fiona. 6 00:00:14,880 --> 00:00:16,599 You married a drug lord's daughter? 7 00:00:16,760 --> 00:00:18,274 I'm not in love with her. 8 00:00:18,440 --> 00:00:21,433 She doesn't love you either. She's got this other guy Marco. 9 00:00:21,600 --> 00:00:23,717 Marco, you're me now, take my identity. 10 00:00:23,880 --> 00:00:26,156 If Este's dad comes looking, she'll be married. 11 00:00:26,320 --> 00:00:27,993 We can't have sex anymore. 12 00:00:28,160 --> 00:00:31,676 - I'm pretty sure that Jody's gonna propose. - You're better than this guy. 13 00:00:31,880 --> 00:00:35,078 Stay the fuck away from me and stay the fuck away from