$count = () = $string =~ /-\d+/g; [download]
In reply to Re: How can I access the number of repititions in a regex? by Anonymous Monk in thread How can I access the number of repititions in a regex? by pat_mc