title: QRegExp For QSortFilterProxyModel - Find All Items In A List
body: <p>Am using PyQt &amp; getting stuck on using setFilterRegExp() with a QSortFilterProxyModel.  The source model outputs integers 1-30, and the QSFPM is to filter 1-30, leaving only the numbers in a supplied list.</p>
  
  <pre><code>proxy.setFilterRegExp(QRegExp('^%s{1,1}%' % sourceModel.wantedNumbersList()))
  </code></pre>
  
  <p>If manually entering the desired numbers: </p>
  
  <pre><code>proxy.setFilterRegExp(QRegExp('^[2, 3, 4, 5, 8, 9, 10, 18, 19]{1,1}%'))
  </code></pre>
  
  <p>both result in [1, 2, 3, 4, 5, 8, 9] being left.  The desired numbers >=10 aren't left in the results, and 1 is included for some reason.   </p>
  
  <p>Also tried:</p>
  
  <pre><code>proxy.setFilterRegExp(RegExp('^[2|3|4|15]{1,1}$')))
  </code></pre>
  
  <p>..which gave [1,2,3,4,5] i.e. interpreted the desired number 15 as 1 &amp; 5.</p>
  
  <p>From the docs, I thought ^ &amp; $ would find exact matches of each, but instead finds all occurrences of all numbers.    </p>
  
  <p>Many Regards  </p>