Assuming it never hurts to ask. >>> x=0xffffffff >>> x >> 1 -1 Wouldn't 0x7fffffff be nice, maybe even a rotate function. My last hot idea to allow re to match nested patterns, produced only polite interest. So I'm sure my interests must be on the fringe :) --Darrell Gallion