Ηι,

I'm want to group a text that has the following text pattern (values and number of lines vary across instances):


<PMID>16893921</PMID>
<Volume>164</Volume>
<Issue>7</Issue>
<Year>2006</Year>

<ISOAbbreviation>Am. J. Epidemiol.</ISOAbbreviation>
<ArticleTitle>Implications of small effect sizes of individual genetic variants on the design and interpretation of genetic association studies of complex diseases.</ArticleTitle>
<MedlinePgn>609-14</MedlinePgn>
<FirstAuthor>Ioannidis JP

Used the following code but got a pattern recognition problem.:

:%s/\(<PMID.*$\)\(<Volume.*$\)\(<Issue.*$\)\(<Year.*\)\(ISO.*$\)\(<ArticleTitle\_.\{-}ArticleTitle>\)\(<MedlinePgn.*$\)\(<FirstAuthor.*$\)/\1\6\5\4\2\3\7\8\g

What am I missing??

Thanks in advance,

Nikos

Reply via email to