部分文字列出現回数
in Python
>>> 'PythonPythonF#PythonJPythonF#PythonPython'.count('Python')
6
in J
+/'Python' E. 'PythonPythonF#PythonJPythonF#PythonPython'
6
接尾辞チェック
in Python
>>> 'Python'.endswith('thon')
True
>>> 'language J'.endswith('age j')
False
in J
endswith =: #&1@#@] -: (#@[-#@])}.e.
'Python' endswith 'thon'
1
'language J' endswith 'age j'
0