I
ishamid
[total novice here]
Hi,
I have a series of expressions like this (shortened from verbose xml)
=====================
[<text:sequence text:ref-name="refAutoNr0">1</text:sequence>
[<text:sequence text:ref-name="refAutoNr1">2</text:sequence>
[<text:sequence text:ref-name="refAutoNr2">3</text:sequence>
[<text:sequence text:ref-name="refAutoNr3">4</text:sequence>
=====================
I want to globally replace each such line with just
====================
\head
====================
followed by a line space so I get
====================
\head
\head
\head
\head
====================
etc.
I am modifying a script with lines like
====================
data.gsub!(/.*?<(office:text).*?>(.*?)<\/\1>.*/mois) do
'\starttext' + "\n" + $2 + "\n" + '\stoptext'
====================
and don't yet know enough to completely understand. Probably a few more
hours/days of study will get me there but I need this urgently so...
THNX in advance
Best
Idris
Hi,
I have a series of expressions like this (shortened from verbose xml)
=====================
[<text:sequence text:ref-name="refAutoNr0">1</text:sequence>
[<text:sequence text:ref-name="refAutoNr1">2</text:sequence>
[<text:sequence text:ref-name="refAutoNr2">3</text:sequence>
[<text:sequence text:ref-name="refAutoNr3">4</text:sequence>
=====================
I want to globally replace each such line with just
====================
\head
====================
followed by a line space so I get
====================
\head
\head
\head
\head
====================
etc.
I am modifying a script with lines like
====================
data.gsub!(/.*?<(office:text).*?>(.*?)<\/\1>.*/mois) do
'\starttext' + "\n" + $2 + "\n" + '\stoptext'
====================
and don't yet know enough to completely understand. Probably a few more
hours/days of study will get me there but I need this urgently so...
THNX in advance
Best
Idris