I need some help with this. I am processing text files with PHP, and the program that generates these files puts headers in those text files. My problem is that I only need the headers once but the program generates it several times, depending on the size of the file. Other problem is that the headers are dynamic, they differ from one another. My question is, how can I find and erase these headers. For example, the header starts like this:
"Scientific Provider ...
text text text
dynamic text
text text text"
but it ends with a date:
" 22/09/04 "
Any suggestions?