in reply to Re: Regex related question
in thread Regex related question

This doesn't quite work. It breaks if there is duplication in end. See for example input: GCTGTGTGTGT.

Thanks for trying though :).

Replies are listed 'Best First'.
Re^3: Regex related question
by davido (Cardinal) on Aug 08, 2011 at 07:32 UTC

    :) That darn quantifier position is a pain in the rear. ;) The best way to fix it would be to use Perlbotics solution above.

    I posted a "just for fun" version as an update.


    Dave