title: How to handle two possible position of a group in regular expression in ruby?
body: <p>I have a regular expression like this <code>(HN)(#{VAL})(#{dens})(#{temp})(C|A)#?{temp})#?(A|0)</code></p>
  
  <p>"temp" can either be at 4th position or at 7th position in my regular expression . How to handle this pattern in ruby regex ?</p>
  
  <p>Example of the input data:</p>
  
  <pre><code>HN58 C 256 A T "I" 85E or HN58 C 257 A T 85 "I" E
  </code></pre>