Enrique wrote:
Hi all,
I have realized that in OOo the regular expression search
consistently returns the longest possible match within the paragraph.
I am reformatting an XHTML text (and want to do within OOo, no XML
processor), for instance:
<p class="Standard">Escriba aquν Espaρa, Ca<span class="T1">2+</span>
con <span class="T2">acentos</span> <span class="T3">Camiσn</span>, y
con griegas alfa:<span class="T4">α</span>, beta: <span
class="T4">β</span>, y DELTA: <span class="T4">Δ</span> {T}</p>
But I need to locate the shortest match. An example "<span.*</span>"
selects almost the entire paragraph above, while I need just each tag,
one after the other.
try "<span.*?</span>"
? is the lazy match mark. It works in Perl anyway...
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST M$ ATTACHMENTS
/ \
Manolis Christodoulou MD.
http://users.forthnet.gr/pel/mchris
http://palmpowereddoctor.blogspot.com
mailto:[EMAIL PROTECTED]
Skype VOIP Phone: mchris21
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]