>- see footer for list info -<
How's this:
<cfsavecontent variable="str">
<ul class="saveMe">
<li>lite System</li>
<li>Side-Link System</li>
</ul>
<ul class="SecondaryNav">
<li>lite System</li>
<li>Side-Link System</li>
</ul>
<ul class="saveMe">
<li>lite System</li>
<li>Side-Link System</li>
</ul>
</cfsavecontent>
<cfoutput>
#REReplace(str, "<ul class=""SecondaryNav"">.*?</ul>", "", "ALL")#
</cfoutput>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 24 March 2006 10:56
To: Coldfusion Development
Subject: RE: [CF-Dev] Friday Reg-Ex Fun
>- see footer for list info -<
Sorry.. i'm trying to replace the whole of the list with nothing (ie
completely remove it)
James
>- see footer for list info -<
You haven't said what you're trying to replace with what.
Ade
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 24 March 2006 10:49
To: Coldfusion Development
Subject: [CF-Dev] Friday Reg-Ex Fun
>- see footer for list info -<
Hi Guys..
Having a little trouble with some CF regex that i cant quite get right.
I need to do an ReReplace on an unordered list with the class
"SecondaryNav" in an html string.
ie.
<ul class="SecondaryNav>
<li>lite System</li>
<li>Side-Link System</li>
</ul>
and variations on this theme.
My best attempt was..
.*<ul id=""SecondaryNav"">(.+)</ul>.*
but unfortunately it fails miserably.
Anyone got any pointers?
Cheers
James
James Constable
Web Developer
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600
http://www.alienationdesign.co.uk
Creative solutions in a technical world
e-Mark e-Business Supplier Certification
Macromedia Alliance Partner
[EMAIL PROTECTED] 2003 Regional Winner
Alienation Design is a Limited company (Alienation Ltd) registered in
Scotland SC195965. This e-mail message is confidential and for use by the
addressee only. Internet e-mails are not necessarily secure. Alienation
Design does not accept responsibility for changes made to this message
after it was sent.
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<