title: How can I remove all the text between matches on a line?
body: <p>I have this problem:</p>
  
  <p>Input text:</p>
  
  <pre><code>this is my text text text and more text
  this is my text myspace this is my text
  this space is my text space this is my
  this is my text this is my text
  this space is my text space space myspace
  </code></pre>
  
  <p>Let say I want to search for "space"<br>
  I would like to have this as output:</p>
  
  <pre><code>this is my text text text and more text
  space
  space space
  this is my text this is my text
  space space space space
  </code></pre>
  
  <p>Matches on the same line have to be separated with a space.<br>
  Line without matches must remain as it is.  </p>
  
  <p>Same for all other search items.</p>
  
  <p>I'm trying to realize this, this afternoon but without success.<br>
  Can anyone help me?</p>