Changed subject from "Glossary of terms in help section".

=================================================

My boss has written a help section for a CMS that I've coded. He's also
asked me to code in a glossary which displays an underline and tooltip on
certain words in a help section. It's working great, but for one minor
issue. One of the "words" in the glossary is "Word", the software). The
problem is that it's ALSO replacing "word" in the string "words". I'm using
a modification of Raymond Camden's highLight UDF and I believe the salient
line is this:

var tmpOn = "[;;^";
var tmpOff = "^;;]";
var howMany = "one";

source = REReplaceNoCase(source,"(#key#)","#tmpOn#\1#tmpOff#","#howMany#");
(In this case, key refers to the word "word")

I just need the code to ONLY capture entire words, and not portions of
words. Does anyone have an idea how to do that? So word and not "word"s,
"document" and not "document"s, etc.

Thanks in advance. Let me know if I need to post the whole function.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:219353
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

Reply via email to