ReplaceInBuf(hbuf, oldPattern, newPattern, lnStart, lnLim, fMatchCase, fRegExp, fWholeWordsOnly, fConfirm)

Performs a search and replace operation in the given buffer.

The search pattern string is given in oldPattern.

The replacement pattern string is given in newPattern.

The line range is specified by lnSart to lnLim. The replacements only take place on lines lnStart up to lnLim - 1.

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.

If fConfirm then the user will be prompted before each replacement.