>>In summary, you would have to make special provisions for:
>>
Beginning of text
>>End of text
>>Beginning of line
>>End of line
>>Any relevant punctuation marks
>>
>>If you do a replace (chrtran() should work fine in this case) for each and every of those cases (just add a space for the first two), then the search will work.
>
>What is so special for the beginning of the text?
Since there is no CR/LF to replace, you have to add a space instead, as you already did.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)