我尝试使用 find
函数检查字符串 "ll"
的出现在字符串中 "hello"
,但它返回 "ll"
而不是 true
或 false
:
"This prints 'll'"
print find "hello" "ll"
REBOL 的标准库是否有任何函数来检查一个字符串是否包含另一个字符串?
最佳答案
尝试这个
>> print found? find "hello" "ll"
true
>> print found? find "hello" "abc"
false
关于rebol - 检查 REBOL 字符串是否包含另一个字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25252375/