You could do it with a mathematical operation based on the ASCII value...course that's not a regex.
It could be a regex, with the /e modifier.
This was actually my first thought and I attempted to implement it. However, if you're leaving Q and Z in there, as the posted code was, it's pretty tricky. That's what made me choose the tr/// which is probably a lot more efficient and is surely more straightforward anyway.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>