_StringCount

Returns number of times string is found in a string

#include "String and File String.au3"
_StringCount( $sString, $sCountString )

parameters

$sString String containing string to count
$sCountString String to count

return value

integer value Number of times string is found

related

_StringCountLines

example

_StringCount( "How many times is the word times contained in this sentence?" ) ; 2