hmm... i re-read what you wrote and i think i guessed wrong in my first reply :-)
you've got a string like abcdef[12/asdsad[32/asdas and you want both numbers ? you might be able to use : $string = "abcdef[12/asdsad[32/asdas"; $i = 0; while ($string =~ /\[(\d{2})\/) { $string =~ s/\[(\d{2})\//; $values[$i] = $1; $i++; } again untested code and i don't know if i understood you this time ;-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]