----- Original Message ----- From: "Ben Doom" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Wednesday, December 07, 2005 1:05 PM Subject: Re: [QUARRANTINE] Regex Help Needed
> Well, you don't really need the outside parens, so you could just ditch > those. I thought that might be the case, but the following also throws the same backreference error: re = '(sun)(mon)|(mon)(tue)|(tue)(wed)|(wed)(thu)|(thu)(fri)|(fri)(sat)|(sat)(sun)'; s = REReplaceNoCase(s, re, '\1,\2', 'all'); // adjacent weekdays Ah... I think I see what the problem is. If the match is SatSun then I'd need to use \13 & \14. I'm not sure I know how to deal with that. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226478 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54