This question already has an answer here:
- Extract information from a text file 2 answers
I have a text file, the following shows a sample of file contents:
1234 A novel homeodomain-encoding gene is associated with a large CpG island interrupted by the <category="Modifier">myotonic dystrophy</category> unstable (CTG)n repeat. <category="SpecificDisease">Myotonic dystrophy</category> ( <category="SpecificDisease">DM</category> ) is associated with a ( CTG ) n trinucleotide repeat expansion in the 3-untranslated region of a protein kinase-encoding gene , DMPK , which maps to chromosome 19q13 . 3 . Characterisation of the expression of this gene in patient tissues has thus far generated conflicting data on alterations in the steady state levels of DMPK mRNA , and on the final DMPK protein levels in the presence of the expansion . The <category="Modifier">DM</category> region of chromosome 19 is gene rich , and it is possible that the repeat expansion may lead to dysfunction of a number of transcription units in the vicinity , perhaps as a consequence of chromatin disruption . We have searched for genes associated with a CpG island at the 3 end of DMPK . Sequencing of this region shows that the island extends over 3 . 5 kb and is interrupted by the ( CTG ) n repeat . Comparison of genomic sequences downstream ( centromeric ) of the repeat in human and mouse identified regions of significant homology . These correspond to exons of a gene predicted to encode a homeodomain protein . RT-PCR analysis shows that this gene , which we have called <category="Modifier">DM</category> locus-associated homeodomain protein ( DMAHP ) , is expressed in a number of human tissues , including skeletal muscle , heart and brain .
I need to extract what in between tags: for example,
I need to extract "Myotonic dystrophy" and write to a new text file.