stowite;
Thanks for the minimal and clear test program.
I hope to use it in my experimentation.
When you wrote;
"You need to spend time with the regex library documentation and with the examples. That would have saved you days of wasted time."
What library were you referring to? Did you mean Gammon's lib (Regexp) or some other one?
The reason I ask is because you wrote "regex" rather than Regex".
As for the documentation of the library and the examples you're referring to, if you did mean Nick Gammon's library, here are 3 URLs I've been using to learn Nick's regex library:
- https://www.gammon.com.au/scripts/doc.php?lua=string.find
- https://www.gammon.com.au/forum/?id=11063
- https://www.gammon.com.au/regexp
Here is my first target I'd like to match: ";c" or ";xx"
where 'c' is exactly 1 of any keyboard character (case insensitive)
and 'xx' is exactly 2 hex digits (case insensitive)
So far, I haven't been successful.
What regex would you use to match either of these 2 targets?
Thanks;
Ray