title: How do I extract all matches with a Tcl regex?
body: <p>hi everybody i want solution for this regular expression, my problem is  Extract all the hex numbers in the form <code>H'xxxx</code>, i used this regexp but i didn't get all hexvalues only i get one number, how to get whole hex number from this string</p>
  
  <pre><code>set hex "V5CCH,IA=H'22EF&amp;H'2354&amp;H'4BD4&amp;H'4C4B&amp;H'4D52&amp;H'4DC9"
  set res [regexp -all {H'([0-9A-Z]+)&amp;} $hex match hexValues]
  puts "$res H$hexValues"
  </code></pre>
  
  <p>i am getting output is 5 H4D52</p>