Hello, Why do these regexps handle only the first number?
$ cat ./test.pl #!/usr/bin/perl use strict; use warnings; my $raised_num = 'Tab_10' =~ /^Tab_(.*)$/; print $raised_num."\n"; $raised_num = 'Tab_11' =~ /^Tab_([0-9]+)$/; print $raised_num."\n"; $raised_num = 'Tab_12' =~ /^Tab_([0-9][0-9])$/; print $raised_num."\n"; $ ./test.pl 1 1 1 But, according to all rules, both numbers must be handled: 10 11 12 -- Regards, Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/