title: Alphanumeric regex pattern with definite number of characters separated by hyphen
body: <p>I have a set of IDs separated by hyphen which can have minimum 6 characters containing alphanumeric values and some special characters at the end, where only numeric values are not allowed.
  LIKE THE FOLLOWING:</p>
  
  <pre><code>YUIO-10GB-BG4   ==&gt; Should match
  
  U-VI1.1-100-WX-Y9  ==&gt; Should match
  
  1-800-553-6387  ==&gt; Shouldn't match because all are digits
  
  T-Series  ==&gt; Shouldn't match as all only 2 letters are capital
  </code></pre>
  
  <p>I am trying a following pattern given below with following rules, but facing difficulties for some testing queries..</p>
  
  <pre><code>((?=\S{6,})[A-Z]{1,}(([A-Z0-9./+~]+){0,}-){1,}[A-Z0-9./+~]+=*)
  </code></pre>
  
  <p><a href="https://regex101.com/r/d8MFRE/5" rel="nofollow noreferrer">https://regex101.com/r/d8MFRE/5</a></p>