> >>>>> "RN" == Ranga Nathan <[EMAIL PROTECTED]> writes:
>   RN> This does not work.  The \1, \2 etc are not evaluated as
>   RN> 'iterators'. I tried the experimental ?{} too.

well, if the count range is low, you could always
roll out each possible count in the regular expression.

my $patt = '(s\ds\d)';

$var =~ 
/
  ( 01 $patt )
| ( 02 $patt $patt )
| ( 03 $patt $patt $patt )
...
/

if you go beyond 99, then probably not, but if the max
count is low enough, you could do it that way.

you did say speed wasn't important...

Greg
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to