in reply to A regular expression that will work for (hh:)mm:ss [converting clock time to seconds]
Perhaps you want something like this:
my ( $seconds, $minutes, $hours, $days ) = reverse $inputTxt =~ /\d+/g +; [download]