your original post said something about regular expressions.
True. It support them
RULES foo a(b+)c==>c$1a!!length($1)>5 ENDRULES
so, abbbbbbbc gets cbbbbbbba if the number of b greater than 5.
Regexp::Rules is the name I'm pointing to, at the moment.
THanks for helping me with the brainstorming.
Alberto
-- Alberto Simões - Departamento de Informática - Universidade do Minho ,,__ .. .. / o._) .---. /--'/--\ \-'|| .----. .' '. / \_/ / | .' '..' '-. .'\ \__\ __.'.' .' ì-._ )\ | )\ | _.' // \\ // \\ ||_ \\|_ \\_ Perl Monger mrf '--' '--'' '--' www.perl-hackers.net