Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting certain lines from text file
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01424805
Message ID:
01424807
Vues:
43
Very interesting. Thanks a lot.

>Check Re: Finding an email address Thread #1415275 Message #1415283 just adjust the reg expression for your needs.
>
>>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.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform