Count occurrences of a substring: Difference between revisions

no edit summary
(Count occurrences of a substring in True BASIC)
No edit summary
Line 3,200:
2
0</pre>
 
=={{header|Vlang}}==
<lang vlang>fn main(){
println('the three truths'.count('th'))
println('ababababab'.count('abab'))
}</lang>
 
{{out}}
<pre>
3
2
</pre>
 
=={{header|Wortel}}==
338

edits