I am trying to search a word which is initial caps but matchCase search option is not working as expected. below is my code :
textToHighlight = "Deed";
var rangeCol = para.search(textToHighlight, { matchCase: true});
Paragraph Text : Seller shall convey title to the Property to Buyer by grant deed in the form of letter("Deed").
It always returns first instance of deed which is non caps.
Thanks