Hi folks. Solution (in case someone need it)
reReplaceNoCase(str, "(" & substr & ")", "<b>\1</b>", "all") Tuesday, April 27, 2004, 9:30:27 PM, you wrote: Alex> Hi folks. Alex> I get very strange behaviour of the ReReplaceNoCase function. Alex> What i have. Alex> keywords="Start Preschool Child Care" Alex> sentence="500 character long verity summary" Alex> What I need. Alex> to wrap each match with <b></b> Alex> What I did. Alex> I wrote following code (fragment) Alex> reReplaceNoCase(str, "(.*)(" & substr & ")(.*)", "\1<b>\2</b>\3", "all") Alex> What is wrong. Alex> First instance of the substring is not "bolding". So If i have Alex> keywords="Start Preschool Child Care" Alex> sentence="How to Start a Preschool and Child Care Alex> Reaching Beyond the Congregation How to Start a Church Preschool Alex> and Child Care" (which is verity summary) Alex> i get Alex> How to Start a Preschool and Child Care Reaching Beyond Alex> the Congregation How to <b>Start</b> a Church <b>Preschool</b> Alex> and <b>Child</b> <b>Care</b> Alex> Any ideas on why that happening...? Alex> -- Alex> Regards, Alex> Alex mailto:[EMAIL PROTECTED] -- Regards, Alex mailto:[EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]