Count occurrences of a substring: Difference between revisions

Content added Content deleted
m (→‎{{header|Lambdatalk}}: Regularize non-standard header markup)
Line 2,440: Line 2,440:
2
2
</pre>
</pre>

=={{header|Smalltalk}}==
<lang smalltalk>Transcript showCR:('the three truths' occurrencesOfString:'th').
Transcript showCR:( 'ababababab' occurrencesOfString:'abab').
</lang>
{{out}}
<pre>3
2</pre>


=={{header|SNOBOL4}}==
=={{header|SNOBOL4}}==