0

I need a Regex that matches only 64 char long hex strings prefixed with with "0x" (case insensitive).

Like this for exemple :

0xdcf2e4815f9c71c8d160ecbcedb7a874899598acd1d87c2a77e5bda225db702b

I have this, wich seems to work, but i'm not very good with Regex and i need to make absolutly sure this is correct and doesn't let anything else through:

^(?:0[xX]){1}((?:[0-9a-fA-F]){64})\z

0 Answers0