title: Is it possible to parse this code using regex?
body: <p>I am working on a program that makes stratigraphic columns for geologists.  Rock units by the geologists are coded using 5 parameters: (1) a lithology code (2 characters), (2) primary code (1 character), (3) secondary code (1 character), and (4) tertiary code (1 character).  So a rock unit can be coded like:</p>
  
  <p>Ssxrs - making it a rooted and cross-bedded sandstone with a sharp basal contact.</p>
  
  <p>It is easy to parse out 2 characters, 1 character, 1, and 1.  But the geologist sometimes code the rock unit like:</p>
  
  <p>Gr-Ss --- where the unit grades upward from a conglomerate to a sandstone, or</p>
  
  <p>Gr/Ss --- where the conglomerate and sandstone are interbedded.  </p>
  
  <p>They can do this multiple times like: </p>
  
  <p>Gr-Ss/Ls --- where a conglomerate grades upward to an interbedded sandstone and limestone.  Not only do they do this for the lithology codes but also for the primary, secondary, and tertiary codes.</p>
  
  <p>I would like to parse out the 5 code streams and actions (ie. "/" and "-") into a lithology list/array, primary list/array, secondary list/array, and tertiary list/array.</p>
  
  <p>Is this a regex solvable problem?</p>