ends_with 函数
检验文本是否以指定后缀结尾。
语法
ends_with(text, suffix)has_suffix(text, suffix)
参数与选项
text | 文本值,通常写在引号中。 |
|---|---|
suffix | 后缀文本。 |
示例
- 后缀检验
ends_with('abcdef', 'ef')返回 true。
检验文本是否以指定后缀结尾。
ends_with(text, suffix)has_suffix(text, suffix)text | 文本值,通常写在引号中。 |
|---|---|
suffix | 后缀文本。 |
ends_with('abcdef', 'ef')返回 true。