Hello Nazrulsyah Firaz Fauzee Andylim, Peter Jones and All
If I fully understand the problem, your first line begins with one or more digits, followed by any spacing, followed by two time values, each of them, separated by a space and written with the template HH:MM:SS:CC ( CC = hundredth of second , from 00 to 99 )
And you would like to delete the first number, at beginning of each line, containing the templates HH:MM:SS:CC, on 62 files, wouldn’t you ? If so :
Backup your 62 TXT files, as the same 62 SRT files ( IMPORTANT )
Open the Find in files dialog ( Ctrl + Shift + F )
In the Find What : zone, type ^\d+\h+(?=\d\d:\d\d:\d\d:\d\d)
Leave the Replace with : zone EMPTY
In the Filters zone, type *.SRT
In the Directory zone, type the absolute location of these 62 SRT files
Select the Regular expression search mode
Uncheck, if necessary, the In all sub-folders and In hidden folders options
Click on the Replace in Files button and click on the OK button to valid that S/R
Et voilà !
Remark : If anything goes wrong, NO panic : just, delete the 62 SRT files, as you STILL get the 62 original TXT files :-)
For instance, from the text below :
2 15:25:23:80 15:25:25:37 Blah, blah Blah, blah Blah, blah ......... ......... 7 10:00:01:00 10:00:02:07 When I was a child, I used to go, 2 times per week, to Mr Parker's work-shop to contemplate, with fascination, all the automatons, build by the old man. More than 1 hundred, with their sparkling colours, lay on numerous shelves... ......... ......... 11 03:07:59:77 03:08:01:13 more than one line in the SRT goes hereyou would obtain, the replaced text below :
15:25:23:80 15:25:25:37 Blah, blah Blah, blah Blah, blah ......... ......... 10:00:01:00 10:00:02:07 When I was a child, I used to go, 2 times per week, to Mr Parker's work-shop to contemplate, with fascination, all the automatons, build by the old man. More than 1 hundred, with their sparkling colours, lay on numerous shelves... ......... ......... 03:07:59:77 03:08:01:13 more than one line in the SRT goes hereNotes :
Only, the three numbers 2, 7 and 11, at beginning of lines, and the following spacing characters, are deleted
Luckily, the lines, which begin with a number, but not followed by a template, of the form HH:MM:SS:CC, remain unchanged !
From beginning of line ( ^ ), the regex engine looks for a non null range of digits ( \d+ ), followed by some non null spacing characters ( \h+ ).
Then, due to the syntax (?=\d\d:\d\d:\d\d:\d\d), named a positive look-ahead, the regex engine, verifies that, at cursor position, a time value, with the template HH:MM:SS:CC can be found. If so, the overall regex matches that initial number and the spacing, after it.
And, as the Replace zone is EMPTY, it’s , simply, deleted, from the file’s contents
Best Regards,
guy038
P.S. :
BTW, are my two sentences, at middle of the text, looks like “fair” English prose ?!