title: Match whole word if it meets a condition
body: <pre><code>let str = 'text text example.com/?isExample=true more text'
  
  if (str.match(/.com/i)) {
   ...
  }
  </code></pre>
  
  <p>How can I get the whole example.com link based on just that one condition? I need only the link, not the text as well.</p>
  
  <p>So the expected result would be <code>example.com/?isExample=true</code></p>