LoadSearchPattern(pattern, fMatchCase, fRegExp, fWholeWordsOnly)

Loads the search pattern used for the Search, Search Forward, and Search Backward commands.

The search pattern string is given in pattern.  

If fMatchCase, then the search is case sensitive.

If fRegExpr, then the pattern contains a regular expression. Otherwise, the pattern is a simple string.

If fWholeWordsOnly then only whole words will cause a match.