title: Select2 custom search
body: <p>I have a select box phone numbers in us format, i need to search the values with or without formatting using select 2.</p>
  
  <p>For example.</p>
  
  <p>Select box values includes</p>
  
  <p>(111) 222-3333</p>
  
  <p>(222) 333-4444</p>
  
  <p>(444) 555-6666</p>
  
  <p>Now my select 2 search only works if I search number in correct format (111) 222-3333, I need to get results even if I search for 1112223333.</p>
  
  <pre><code>&lt;select class="js-example-basic-single" id="list" name="inventory" placeholder="Select"&gt;
     &lt;option value="1"&gt;(111) 222-3333&lt;/option&gt;
     &lt;option value="2"&gt;(222) 333-4444&lt;/option&gt;
     &lt;option value="3"&gt;(444) 555-6666&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;script&gt;
    $('.js-example-basic-single').select2();
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks</p>