Text.EndsWith

语法

Text.EndsWith(text as nullable text, substring as text, optional comparer as nullable function) as nullable logical

关于

指示给定的文本 text 是否以指定的值 substring 结尾。 指示文本区分大小写。

comparer 是用于控制比较的 Comparer。 比较器可用于提供不区分大小写或区分区域性和区域设置的比较。

以下内置比较器支持公式语言:

示例 1

检查“Hello, World”是否以“world”结尾。

使用情况

Text.EndsWith("Hello, World", "world")

输出

false

示例 2

检查“Hello, World”是否以“World”结尾。

使用情况

Text.EndsWith("Hello, World", "World")

输出

true

results matching ""

    No results matching ""