Wow. Chris is a Perl regex genius: http://lists.open-bio.org/pipermail/bioperl-l/2008-August/028094.html I whip out the occasional zero-width negative look-behind assertion, but apparently Chris and 'Mastering Regular Expressions' know a lot more than I do. :) j