in reply to Regex fun

You cannot have a backreference as a quantifier. (Not that you have a capture group to reference to). If you want to do something like that, you may want to try:
s/\+([0-9]+)(??{ "[ACGTNacgtn]{$1}" })//g;

Replies are listed 'Best First'.
Re^2: Regex fun
by Hena (Friar) on Dec 15, 2009 at 14:43 UTC
    So it was as I feared.

    The code looks interesting. I suppose it's either this or what I posted earlier. I wonder if using (??{...}) hurts readability, though mine isn't much better I suppose.