title: Regex pattern containing substring and no withespaces
body: <p>I want to validate an input form in Angular, string must contain substring:</p>
  
  <pre><code>facebook.com
  </code></pre>
  
  <p>or</p>
  
  <pre><code>fb.me
  </code></pre>
  
  <p>and</p>
  
  <pre><code>no whitespaces
  </code></pre>
  
  <p>so for instance:</p>
  
  <pre><code>1) randomString -&gt; Fail
  2) www.facebook.com -&gt; Ok
  3) www.fb.me -&gt; Ok
  4) www.facebook.com/pippo pallino -&gt; Fail (there is a withespace after the word "pippo")
  </code></pre>
  
  <p>for the first 3 I have some working pattern:</p>
  
  <pre><code>pattern = '^.*(?:facebook\\.com|fb\\.me).*$';
  </code></pre>
  
  <p>but this is not validating the fourt one.</p>