It is possible to produce an infinite loop when replacing a character with a doube of itself and choosing backward as direction.
Example: Put the cursor at the end of a file with at least one "0" and then replace backward every "0" with "00". The replace algorithem then matches on its own replacements and replaces them over and over again so that after the first match lots of "0"s are created...