Regular Expressions 101

Community Patterns

Find all text lines after simple time code

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?!\d:\d{2}+).+
/
gmi

Description

Given a time code caption file (not standards compliant) use this script to match all lines following a time code line

You can use this regex in Notepad++ to generate a new file that only contains the matches in the form of ^(?!\d:\d{2}+).+

Submitted by Alexander Roberts - 6 months ago