title: Using Regular Expression Match a String that contains numbers letters and dashes
body: <p>I need to match this string <code>011Q-0SH3-936729</code> but not <code>345376346</code> or <code>asfsdfgsfsdf</code>
  It has to contain characters AND numbers AND dashes</p>
  
  <p>Pattern could be <code>011Q-0SH3-936729</code> or <code>011Q-0SH3-936729-SDF3</code> or <code>000-222-AAAA</code> or <code>011Q-0SH3-936729-011Q-0SH3-936729-011Q-0SH3-936729-011Q-0SH3-936729</code> and I want it to be able to match anyone of those. Reason for this is that I don't really know if the format is fixed and I have no way of finding out either so I need to come up with a generic solution for a pattern with any number of dashes and the pattern recurring any number of times.</p>
  
  <p>Sorry this is probably a stupid question, but I really suck at Regular expressions.</p>
  
  <p>TIA</p>