title: Concatenate two strings with a common substring?
body: <p>Say I have strings,</p>
  
  <pre><code>string1 = 'Hello how are you'
  string2 = 'are you doing now?'
  </code></pre>
  
  <p>The result should be something like</p>
  
  <pre><code>Hello how are you doing now?
  </code></pre>
  
  <p>I was thinking different ways using <code>re</code> and string search.
  (<a href="http://en.wikipedia.org/wiki/Longest_common_substring_problem" rel="nofollow noreferrer">Longest common substring problem</a>)  </p>
  
  <p>But is there any simple way (or library) that does this in python?  </p>
  
  <p>To make things clear i'll add one more set of test strings!</p>
  
  <pre><code>string1 = 'This is a nice ACADEMY'
  string2 = 'DEMY you know!'
  </code></pre>
  
  <p>the result would be!,</p>
  
  <pre><code>'This is a nice ACADEMY you know!'
  </code></pre>