regex - How to parse an 8-bit hexadecimal number and a string using boost C++? -
I have just started using boost C ++ libraries for some parser work. I would like to use some help on the following:
-
I have tried to match an 8-bit hexadecimal number:
four _ ("0-9a-fA-F ")
which matches only one hexadecimal number I also tried to use:* char _ (" 0- 9a-fA-F ")
, but also Not working -
String with any mailing underscore character? For example,
aBCd_Efgh
fact From four_
to boost :: emotion :: qi
you just want to use the integer parser:
It is easily used to parse hexadecimals:
qi :: int_parser & lt; Unsigned characters, 16, 2, 2 & gt; Hex_byte;
Will match and parse exactly 2 hexadecimal digits in succession.
Comments
Post a Comment