Count occurrences of a substring: Difference between revisions
Content deleted Content added
Count occurrences of a substring in True BASIC |
No edit summary |
||
Line 3,200: | Line 3,200: | ||
2 |
2 |
||
0</pre> |
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}}== |
=={{header|Wortel}}== |