Okay here is a more efficient find and replace, it merely overides the two functions _findNext and _findReplace so that you can pass in a prefix function, this means that findReplaceAll can compute the prefix function and pass it in so that it is not continually re-computed by the _findNext function. Allan Clark [EMAIL PROTECTED]
efffind.diff