我尝试使用find功能来检查字符串出现的"ll"字符串中"hello",但它返回"ll"的替代true或false:
"This prints 'll'"
print find "hello" "ll"
Run Code Online (Sandbox Code Playgroud)
REBOL的标准库是否有任何函数来检查字符串是否包含另一个字符串?
试试这个
>> print found? find "hello" "ll"
true
>> print found? find "hello" "abc"
false
Run Code Online (Sandbox Code Playgroud)