On Monday, Sep 22, 2003, at 12:02 US/Pacific, Les Mizzell wrote: > Sean A Corfield wrote: >> REreplace(PDWBD.DynamicQuestions & '|','([^\|]*)\|([^\|]*)\|','\1: >> \2<br>','ALL') > That's some sick looking stuff, but it works like a charm.
For once I tested my code before posting :) > Jezz, I need to stare at that awhile a figure exactly what it's > doing.... [^\|]* matches 0 or more characters that don't include | ([^\|]*)| matches a sequence of 0 or more non-| characters followed by | ([^\|]*)|([^\|]*)| matches stuff like Target Present|Yes| \1 refers to the 1st sub-pattern, \2 to the 2nd. It adds '|' to the end of your string because you only have inline separators, not a closing separator. Hope that helps! Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137985 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com

