Great point, Scott. I wasn't so much speaking to when RegEx's are best, but just helping when one does decide to use them. Still, you make a good point that one doesn't want to solve every fastening job with a hammer and nail (even if that's where you have the most experience). Some call for a screwdriver instead. Good to remember. :-)
/Charlie -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Arbeitman Sent: Friday, April 14, 2006 10:31 PM To: cfaussie Subject: [cfaussie] Re: regex resources (RE: [cfaussie] Re: RegEx brain fart) my preference for a task like this is to use xpath and treat html as xml. if it's not xhtml then i would use jtidy to clean it up so it is. then it's trivial to select all text nodes that are children of html, your code is more self-documenting and easier to mantain. i've written a super simple tag: <cf_tidy input="html" output="xhtmlVar" /> <cfset nodes = XmlFind(xhtmlVar, "xpathExp") /> Charlie Arehart wrote: > In the spirit of "teaching a man to fish", should anyone trip over > RegEx problems in the future, here are a few resources to help with > regular expressions. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---
