title: Problem with pattern regex in Watson's entity
body: <p>Greetings.</p>
  <p>I need Watson to recognize an entity that represents the branch of our Company that the Customer has placed an order with. We currently use the following pattern on the customer_branch entity:</p>
  <pre><code>\d{1,5}-[xX\d]{1}
  </code></pre>
  <p>The dialog node asks the Customer's branch, with the following message: &quot;Please, enter the branch's number where you placed the order, in this pattern XXXXX-X:&quot;, expecting something like:</p>
  <blockquote>
  <p>12345-6</p>
  </blockquote>
  <p>Although most of our Customers type the branch number correctly, some do:</p>
  <blockquote>
  <p>branch 12345-6</p>
  <p>nr 12345-6</p>
  <p>nr. 12345-6</p>
  <p>number 12345-6</p>
  </blockquote>
  <p>This causes Watson not to recognize the entity customer_branch, frustrating them. To solve the problem, we thought about using the following regex in the pattern:</p>
  <pre><code>(?:(br[ae]{1}nch|n[umbe]{0,4}r))?(?:[\s.]*)?(\d{1,5}-[xX\d]{1})
  </code></pre>
  <p>The logic we think is as follows:</p>
  <ul>
  <li><p>a regex group to ignore any word like &quot;branch&quot;, &quot;number&quot;, &quot;nr.&quot; and
  so on, that can or cann't be present;</p>
  </li>
  <li><p>another to ignore periods and
  spaces in any quantity, that can or cann't be present;</p>
  </li>
  <li><p>and finally
  one to capture the branch number.</p>
  </li>
  </ul>
  <p>However, after some tests we are did, Watson still does not recognize the entity correctly, as in the example below:</p>
  <pre><code>&quot;customer_branch&quot;: &quot;nr 12345-6&quot;
  </code></pre>
  <p>We assume that the problem is in the regex, but we were unable to identify it; as it works correctly on regex101.com. Does Watson recognizes correctly exclusion regex groups like <code>(?: Something_here)</code>? We appreciate any tips. Thank all you.</p>