Extracting info from large structured text files

后端 未结 5 1358
鱼传尺愫
鱼传尺愫 2021-01-15 18:22

I need to read some large files (from 50k to 100k lines), structured in groups separated by empty lines. Each group start at the same pattern \"No.999999999 dd/mm/yyyy ZZZ

5条回答
  •  佛祖请我去吃肉
    2021-01-15 19:12

    It would be easier to help if you had a specific concern. Performance will depend greatly on the efficiency of the particular regex engine you are using. 100K lines in a single file doesn't sound that big, but again it all depends on your environment.

    I use Expresso in my .NET development to test expressions for accuracy and performance. A Google search turned up Kodos, a GUI Python regex authoring tool.

提交回复
热议问题