title: Java Regex: how to capture multiple matches in the same line
body: <p>I am trying to match a regex pattern in Java, and I have two questions:</p>
  
  <ol>
  <li>Inside the pattern I'm looking for there is a known beginning and then an unknown string that I want to get up until the first occurrence of an &amp;.</li>
  <li>there are multiple occurrences of these patterns in the line and I would like to get each occurrence separately.</li>
  </ol>
  
  <p>For example I have this input line:
  </p>
  
  <pre class="lang-none prettyprint-override"><code>1234567 100,110,116,129,139,140,144,146 http://www.gold.com/shc/s/c_10153_12605_Computers+%26+Electronics_Televisions?filter=Screen+Refresh+Rate%7C120HZ%5EScreen+Size%7C37+in.+to+42+in.&amp;sName=View+All&amp;viewItems=25&amp;subCatView=true   ISx20070515x00001a          http://www.gold.com/shc/s/c_10153_12605_Computers+%26+Electronics_Televisions?filter=Screen+Refresh+Rate%7C120HZ&amp;sName=View+All&amp;subCatView=true 0   2819357575609397706
  </code></pre>
  
  <p>And I am interested in these strings:</p>
  
  <pre class="lang-none prettyprint-override"><code>Screen+Refresh+Rate%7C120HZ%5EScreen+Size%7C37+in.+to+42+in.
  
  Screen+Refresh+Rate%7C120HZ
  </code></pre>