http://qs1969.pair.com?node_id=583078

use strict; use warnings; my $number = '343243-23423*234-2342-3'; my @count = $number =~ /[\.\- :*\|]/g;