title: Selecting up to a certain character in a string
body: <p>In the program I am working on I have a string in which I need to get only part of it out of. The string is formatted by a set of alphanumeric values, a dash, then more values.  </p>
  
  <p>Ex. ######-#########  </p>
  
  <p>I want to retrieve the values before and after the dash and store them in their own separate strings. This would be easy except the lengths of the two sets of values can vary and there is no limit to the lengths.</p>
  
  <p>Another quick example of what I need help with.</p>
  
  <p>Ex. 4837r99203-4747883391001<br>
  str1=4837r99203<br>
  str2=4747883391001  </p>
  
  <p>Getting only the vales after the dash. I can find answers to getting a certain length of string back. How would I do it if the lengths can vary? Thanks :)</p>