Hi everyone, I want a solution for this regular expression, my problem is: Extract all the hexadecimal numbers in the form H'xxxx, I used this regular expression, but I did not get all the hexadecimal values, only I got one number, how to get the integer hexadecimal number from this string
set hex "V5CCH,IA=H'22EF&H'2354&H'4BD4&H'4C4B&H'4D52&H'4DC9"
set res [regexp -all {H'([0-9A-Z]+)&} $hex match hexValues]
puts "$res H$hexValues"
I get pin 5 H4D52
source
share