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

stowite';
In your reply #25 where you wrote;
"You need to spend time with the regex library documentation and with the examples."
I responded by mentioning 3 URLs for the documentation of Gammon's library I was studying.
I then take it that you are saying you did NOT mean I should read Nick's documentation, but I guess you meant the documentation for the "regex" library (I guess it is the PCRE regex's).

Is that correct?

Thanks for your consideration of the 2 examples I mentioned.

I have decide to use the characters ':' and ";" (colon & semicolon) to enclose my data bytes in.

So for the 1st case I asked about (exactly 1 keyboard character) the regex that works is: " *:(.); *"

(This allows anything to precede the colon/semicolon enclosed string and anything may follow it.)

The regex that works for the 2nd case (:xx;) where the "xx" means exactly 2 hex digits, is:
" *:([%x][%x]); *"

The same thing applies regarding preceding and following unrelated text.

It was your simple clear test program that allowed me to discover the correct regex's.

In your Edit;
(Edit: I note that this time you definitely do have a space after the ';' in the regex that is not in the target string)

I'm sorry, but I still can't find where in the code I provided thus far you're able to find the "; " you mention.
Could you give me the Reply # and perhaps what the line begins with. From there I should be able to locate the line of code.

Thanks;
Ray