in reply to How can I access the number of repititions in a regex?
$count = () = $string =~ /-\d+/g; [download]