The x can also be upper and lower case (same as in integers, by the way). The exponent can only be decimal digits. The pattern does not support decimal point in the mantissa, or more than one digit in the exponent.ivan wrote: ↑Mon Jan 11, 2021 6:32 pm I have changed the following patterns:Code: Select all
hexp = "0x%x+[Pp][%-%+]?%x" float = "%d*%.%d+[Ii]?"
You can use this pattern:
Code: Select all
hexp = "0[Xx]%x-%.?%x-[Pp][%-%+]?%d+"
Code: Select all
hexp1 = "0[Xx]%x+%.?[Pp][%-%+]?%d+" -- mantissa without decimals, point optional
hexp2 = "0[Xx]%x-%.%x+[Pp][%-%+]?%d+" -- mantissa with decimals, point mandatory