in reply to Re: Count number of occurrences of a substrin thread Count number of occurrences of a substr
$n = () = $str =~ /this/g;