user is searching for and making the first occurrence of it bold in
the results (ignoring the case).
>From reading javascript books and looking at posts in this group, Ithought this would work. Perhaps I misunderstood what $1 is. But in
the results, I am getting a bold $1 with IE6.
How can I determine what the occurrence of the phrase is in the
correct case?
I realize I can write this parsing the string without regular
expressions but I thought this would be cleaner.
var match = new RegExp( escapeCharsForR egExp(typedLett ers), "i");
if (match.test(tex t))
{
text = text.replace(ma tch, '<b>' + '$1' + '</b>' );
}