The hexadecimal pattern matches a string of hexadecimal characters. These characters cannot be preceded by a minus sign. The hexadecimal pattern matches any numeric character and the letters a through f. The pattern does not match anything else. When ASL assigns a hexadecimal pattern to a variable, the numeric value is kept but not the hexadecimal value.
The following script matches each hexadecimal number and the corresponding end-of-line.
ASL Script (hex_match.asl): START { a:hex eol } do { print("Matched with ".a); } DEFAULT { ..eol } do { print("Failed match"); } Input (hex_match.txt): ff2234 FF 23 Output: $ sm_adapter --file=hex_match.txt hex_match.asl Matched with 16720436 Matched with 255 Matched with 35 $