I'm stuck with the following and i would like to know if someone of you can help me. I'm trying to develop a script, the purpose is to match different counters from a log file and store them in a hash, in order to do that i need the correct regular expression to match for the below counters and their respective values:

The above code is fetching for the counters (Retried reads: Retried writes: Corrected sectors: Interrupt timeouts: ) and storing them in this hash: $hash{$node}{$counter}{statistic} = $statistic; the list "list" includes the counters mentioned

My regular expression is only fetching for words included in @list that have only one "space" in each of them, now i need a better regular expression to fetch for all counters (including those who have 2 or more spaces) and store them in the same hash, can someone help me?