ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: replacing across lines
Date Fri, 19 Jul 2002 14:19:48 GMT
If your HTML is XHTML, you could also use XmlTask (See External Tools and
Tasks), which could do this nicely I guess. --DD

-----Original Message-----
From: Geoff Meakin [mailto:geoffm@isocra.com] 
Sent: Friday, July 19, 2002 5:24 AM
To: Ant Users List
Subject: RE: replacing across lines

Ah it seems combinations of &#10; and &#13; do the job if any of you are
interested :)

Cheers - Geoff


-----Original Message-----
From: Geoff Meakin [mailto:geoffm@isocra.com]
Sent: 19 July 2002 11:08 AM
To: ant-user@jakarta.apache.org
Subject: replacing across lines


Is there any way to use <replace> across lines

e.g. I have a bit of html which goes

<span style="font-weight: normal">text
</span>

I want to remove the [span] tags to read:

text

I can't use
<replace dir="..." value="" token="&lt;span style=&quot;font-weight:
normal&quot;&gt;">...</replace>
<replace dir="..." value="" token="&lt;/span&gt;">...</replace>

as this will remove other </span>s that are wanted

is there anyway to match the equiv of /n and/or /r so that I could do
something like:

<replace dir="..."
         value="text"
         token="&lt;span style=&quot;font-weight:
normal&quot;&gt;test/n&lt;/span&gt;">
...</replace>

Thanks for your help!
-Geoff




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message