The $count identifier allows mIRC to return the total count of a matching substring, or set of substrings to a target string.
string The target string to match
substring The substring to match within the target
substring2,... The second substring to match, and beyond
The example string is going to be: My string to match
Echo the matching substring count for str:
Echo the matching substring count for str and m:
The above returns 3 because str is matched to string once, and m is matched to My and match; therefore, the total matches is 3.
Added: mIRC v4.6
Added On: 07/09/96