>>Hi,
>>
>>I am trying to remove from a text file (which is a text version of a movie subtitles) all lines indicating the time stamp.
>>The format of the lines is as following:
>>
>>
>>1
>>00:02:15,257 --> 00:02:16,246
>>Hello.
>>
>>2
>>00:02:25,937 --> 00:02:29,213
>>Some text here
>>some more text here.
>>
>>3
>>00:02:29,337 --> 00:02:32,488
>>More text here
>>and more text here
>>
>>
>>I would like to create a VFP program to open this text file and remove all lines that have "99:99:99,999 --> 99:99:99,999"
>>
>>Most lines of the text start with 00: so if I can find a way to clean up those lines then I can work on the rest.
>>Therefore I need a way to find a line that starts with "00:" and ends with carriage return. How can I do it?
>>
>>Thank you in advance for any suggestions.
>
>If lines are up to 254 then it would be fairly simple:
>
>Create Cursor SimpleTask (LineContent c(254))
>append from (m.lcTemp) type sdf for ;
> AT('-->',LineContent) = 0 or ;
> (empty(ctot(left(LineContent,8))) AND ;
> empty(ctot(left(SUBSTR(LineContent,AT('-->',LineContent) + 4),8))))
>copy to myOutput.txt type sdf
>
Cetin
Thank you very much. I will try your approach.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham