While I'm not going to dive too deep into regexes (I like what little sanity I have left, thanks :), here are a few opcodes I've been thinking of for making REs faster:
=begin proposed_opcodes =item makebitlist sx, sy Makes the string in X a bitmap, with one bit set in it for each character in Y. (So if Y was "AB" bits 64 and 65 would be set, assuming I remember my ASCII) =item ifin sx, iy, DEST If bit Y of bitlist X is set branch to DEST =item ifnotin sx, iy, DEST If bit Y of bitlist X is not set branch to DEST =end proposed_opcodes I think we already have ops to put the integer value of a single character (taken from an offset from the beginning of a string) into an integer register, but if we don't we should. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk