It appears that your solution only allows for a single-character STX or ETX token, due to the check for character classes (eg [$STX]). I am presently experiencing too much of a coffee deficiency to offer an alternative.
Update: ... and to not recognize that STX and ETX are possibly symbols for one character tokens :-)
--MidLifeXis
In reply to Re^2: Detect STX and ETX hex in received string
by MidLifeXis
in thread Detect STX and ETX hex in received string
by jagexCoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |