Hi folks.

I get very strange behaviour of the ReReplaceNoCase function.

What i have.
keywords="Start Preschool Child Care"
sentence="500 character long verity summary"

What I need.
to wrap each match with <b></b>

What I did.
I wrote following code (fragment)
reReplaceNoCase(str, "(.*)(" & substr & ")(.*)", "\1<b>\2</b>\3", "all")

What is wrong.
First instance of the substring is not "bolding".  So If i have
keywords="Start Preschool Child Care"
sentence="How to Start a Preschool and Child Care Reaching Beyond the Congregation How 
to Start a Church Preschool and Child Care" (which is verity summary)
i get
How to Start a Preschool and Child Care Reaching Beyond the Congregation How to 
<b>Start</b> a Church <b>Preschool</b> and <b>Child</b> <b>Care</b>

Any ideas on why that happening...?



-- 
 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]

Reply via email to