Hell of a regex.........

Hey! It aint that hard!
Post Reply
bob
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 7565
Joined: 12/03/01, 12:00 am
Location: St. Louis
Contact:

Post by bob » 12/30/02, 5:26 am

Heh heh.... like this for a match?

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class=postbody>Code:</font><HR width=100% color=#333333 SIZE=1></TD></TR><TR><TD><FONT class=code><PRE>s/<![CDATA[[^]]*]([^]]+])*]+([^]>][^]]*]([^]]+])*]+)*>//gi;</PRE></FONT></TD></TR><TR><TD><HR width=100% color=#333333 SIZE=1></TD></TR></TABLE><!-- BBCode End -->

I need it to run a certain site on Daily Rot. Just for the sake of noting such things--This site's rss "headline file" actually regenerates the whole front page thanks to the frickin' CDATA content..... This makes the file about 20 times larger than most rss files.... 1 kb average vs. 20 kb for this site

_________________



Understatement is best

<font class=editedby>[ This Message was edited by: bob on 2002-12-30 13:33 ]</font>

<font class=editedby>[ This Message was edited by: bob on 2002-12-30 13:34 ]</font>

SOD
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5284
Joined: 12/06/01, 12:00 am
Location: here and there

Post by SOD » 12/30/02, 8:17 am

DAMN! could you share the sites name not for being critical
just wish to see the structure of the RSS involved....have ran across those before is the file valid RDF or whatever the name space they are using? Looking at XML it should be driven to meet the content not driven by a code structure....with XML the code is the content.
It is better to be here than there - SOD

bob
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 7565
Joined: 12/03/01, 12:00 am
Location: St. Louis
Contact:

Post by bob » 12/30/02, 10:05 am

WYSIWTF

SOD
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5284
Joined: 12/06/01, 12:00 am
Location: here and there

Post by SOD » 12/30/02, 10:13 am

Well thats some CData. Interesting use in a non RDF namespace. I have usually seen CData associated with RDF docs. Certainly extensable.
It is better to be here than there - SOD

bob
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 7565
Joined: 12/03/01, 12:00 am
Location: St. Louis
Contact:

Post by bob » 12/30/02, 2:53 pm

Joe User has now removed the CDATA content..........
WYSIWTF

Post Reply