I would like to extract fields to a database from text files. However, the fields are positioned differently in each text and it is difficult to obtain the values by common methods, for example:
file 1:
PROVA: 2º Corta Mato
LOCAL: Pinhal da Paz
ORGANIZAÇÃO:
AAP
ESTADO TEMPO: Bom
DATA: 28-01-2007
file 2:
PROVA: MEGA SPRINTER LOCAL: E.B.I. DE ARRIFES
ASSOCIACAO: AASM/SDSM
TEMPO: Nublado c/ vento
DIA: 22 de Março de 2006
file 3:
AASM
ESTADO TEMPO: Nublado/Ventoso c/ alguma chuva
DATA: 19 de Novembro de 2005
1º Triatlo Técnico + P. de Preparação
C. D. DAS LARANJEIRAS
There are thousands of files, multiple fields per file and each field can have one or multiple values per text, so extracting data by hand is out of the question.