title: replacing part of a string but the part is very long
body: <p>I was wondering how I could replace a part of a string where the part is two character very far away and whats in the middle doesnt matter. An exemple will better explain it:</p>
  
  <pre><code>"1.........\n1.........\n2........."
  </code></pre>
  
  <p>or as its visual output in the text file:</p>
  
  <pre><code>1.........
  1.........
  2.........
  </code></pre>
  
  <p>if for exemple I want to change that if there is a "1" on top of another "1", they both change to "2":</p>
  
  <pre><code>1.........
  1.........
  2......... (or "1.........\n1.........\n2.........")
  
  into
  
  2.........
  2.........
  2......... (or "2.........\n2.........\n2.........")
  </code></pre>
  
  <p>how would I do that? I know how to do it vertically with re.sub</p>
  
  <pre><code>re.sub("11", "22", name_of_string)
  </code></pre>
  
  <p>but now I want to do it vertically or another word, with 10 unspecified character between each "1".
  if I didnt explain well enough to be understood let me know and I will try to be more clear, thanks for taking the time of answering</p>