MathTop

string_contains 函数

检验文本是否包含另一个字符串。

语法

  • string_contains(text, needle)
  • contains_text(text, needle)

参数与选项

text文本值,通常写在引号中。
needle要检验是否存在的文本。

示例

  1. 包含子串string_contains('abcdef', 'cd')返回 true。