in reply to Re^4: Hex regex fails in subroutine
in thread Hex regex fails in subroutine

Definitely a useful technique, but a single set of characters should perform much faster than an alternation list. Of course you could use that technique to build the set of characters.