title: sed command with regexp
body: <p>I don't understand the result of this command using "sed".</p>
  
  <p>Ex: </p>
  
  <pre><code>echo "Here is my website: https://mywebsite.blabla/files" | sed -e 's/.* //g'
  </code></pre>
  
  <p>Result: </p>
  
  <pre><code>https://mywebsit.blabla/files
  </code></pre>
  
  <p>Now I add a second "https":</p>
  
  <pre><code>echo "Here is my https website: https://mywebsite.blabla/files" | sed -e 's/.* //g'
  </code></pre>
  
  <p>And again the result with sed is the same.</p>
  
  <p>As far as I understand, the <code>s/.* //g</code> means substitution of whatever matching any zero or more character(s) and a space with nothing (<code>//</code>), up to the end of the chain.
  Obviously I'm missing something.</p>
  
  <p>Any idea?</p>