best way to match these string or list?
<pre><code>main = ['123', '147', '159', '258', '369', '357', '456', '789']

match1 = 1374
match2 = 1892
</code></pre>

<p>here <code>match1</code> has 1, 4 and 7 But main has '147' so it matches.  <code>match2</code> has 1,8,9,2 so it doesn't matches to <code>main</code>. What is the optimize solution?</p>
