title: Scala regex for string extraction between . and whitespace
body: <p>I have the following string:</p>
  
  <pre><code>val str = "tagged.big AND tagged.medium"
  </code></pre>
  
  <p>I need to implement regex that will find all assurance of <code>tagged.</code> till the first whitespace or the end of the line. In the current <code>str</code> I expect to extract 2 strings:</p>
  
  <pre><code>tagged.big
  tagged.medium
  </code></pre>
  
  <p>This is my current attempt:</p>
  
  <pre><code>val pattern = "tagged.*\\s".r
  </code></pre>
  
  <p>but it returns:</p>
  
  <pre><code>Some(tagged.big AND )
  </code></pre>
  
  <p>Could you please show the proper regexp for this case?</p>