title: Azure Search SDK Regex?
body: <p>I see that Azure Search supports Lucene Regex from here:  <a href="https://msdn.microsoft.com/en-us/library/azure/mt589323.aspx#bkmk_regex" rel="nofollow">https://msdn.microsoft.com/en-us/library/azure/mt589323.aspx#bkmk_regex</a> but no where does it describe how to do this with the SDK.  Before I abandon all hope, I was wondering if anyone has tried it and succeeded?</p>
  
  <p>My team and I have looked at this for days trying to figure out how the fuzzy search works and to be honest this tool looks very limited compared to others on the market.  Just wanted to see if anyone out there has done this.</p>
  
  <p>API Version: 2015-02-28</p>
  
  <p>Here is what I've found thus far:  </p>
  
  <p>@ this link: <a href="https://github.com/Azure/azure-content/blob/master/articles/search/search-query-lucene-examples.md" rel="nofollow">https://github.com/Azure/azure-content/blob/master/articles/search/search-query-lucene-examples.md</a></p>
  
  <p>Example 8 -- Right-click the query. Search for jobs with either the term Senior or Junior.</p>
  
  <pre><code>&amp;queryType=full&amp;$select=business_title&amp;search=business_title:/(Sen|Jun)ior/
  </code></pre>
  
  <p>On the Portal.Azure.com (where my search explorer is...) I type the following item in <code>$select=CaseNumber&amp;search=/508(0|1)/</code>  where I'm trying to find all case numbers with 508 and ending in either 0 or 1.  Here is my results:</p>
  
  <pre><code>/$metadata#docs(CaseNumber)",
      "value": [
          {
              "@search.score": 0.13246636,
              "CaseNumber": "16-A-1238"
          },
          {
              "@search.score": 0.025094833,
              "CaseNumber": "SUV2014000179"
          }
      ]
  }
  </code></pre>
  
  <p>Now if I do this: <code>$select=CaseNumber&amp;search=/5080(0|1)/</code></p>
  
  <pre><code>/$metadata#docs(CaseNumber)",
      "value": [
          {
              "@search.score": 0.33221063,
              "CaseNumber": "SUP238-5080"
          },
          {
              "@search.score": 0.13288425,
              "CaseNumber": "16-A-1238"
          },
          {
              "@search.score": 0.025173998,
              "CaseNumber": "SUV2014000179"
          }
      ]
  }
  </code></pre>
  
  <p>As you can see I finally get a single case with the number I'm attempting to match...  I'm going to say that something in the algorithm isn't working, or isn't working as described.</p>
  
  <p>Now assuming this was REALLY RegEx I should be able to do this /508.+/ and get anything that starts with 508 but since the simple examples don't seem to be bringing back the appropriate results I'm going to go with no. </p>