diff --git a/codemod/base.py b/codemod/base.py
index <HASH>..<HASH> 100755
--- a/codemod/base.py
+++ b/codemod/base.py
@@ -188,7 +188,8 @@ def multiline_regex_suggestor(regex, substitution=None, ignore_case=False):
                 end_line_number=end_row + 1,
                 new_lines=new_lines
             )
-            pos = match.start() + 1
+            delta = 1 if new_lines is None else min(1, len(new_lines))
+            pos = match.start() + delta
 
     return suggestor
Don't advance position if substitution is zero-length

Fixes #<I>. Manually tested example in that issue.