pattern for even number of HEX digits using Nick Gammon's Regexp library

I find it difficult to get enthusiasm to help you when you don't follow advise. You need to test the regex fragments individually by writing sketches that test a particular fragment. You keep saying that the hex regex "(0[xX])?([0-9a-fA-F][0-9a-fA-F])+" fails but the test harness is cluttered with parts that do not have any bearing on the hex regex.

I do note that your regex that contains what I think is the correct hex regex requires the input to have a space between the ';' and the hex number but your test data does not have that space! The incorrect hex regex does not insist on this space; in fact it does not allow it!

I will not respond again unless you follow advise.