[pcre-dev] PCRE regex for hex number
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
Diese Nachricht ist Teil des folgenden Threads:
Der komplette Thread sortiert nach Datum
Philip Hazel am
2021-05-24 07:55
Autor:
Peng Yu
Datum:
2021-05-24 03:32
UTC
To:
pcre-dev
Betreff:
[pcre-dev] PCRE regex for hex number
I use the following regex.
^[-+]?0[Xx][[:xdigit:]]+(?![.G-Zg-z])
and the following string
0x10g
on using PCRE.
https://regex101.com/
It matches 0x1. I want it to be no match. Is there a way to modify the
regex so that only matches valid hex numbers? Thanks.
--
Regards,
Peng