|| apoc.text.compareCleaned - APOC 核心文档 - Neo4j 文档

apoc.text.compareCleaned

详情

语法

apoc.text.compareCleaned(text1, text2)

描述

比较两个给定 STRING 值,这些值已去除所有非字母数字字符并转换为小写。

参数

名称

类型

描述

text1

STRING

要去除所有非字母数字字符并与第二个字符串进行比较的第一个字符串。

text2

STRING

要去除所有非字母数字字符并与第一个字符串进行比较的第二个字符串。

返回

BOOLEAN

使用示例

RETURN apoc.text.compareCleaned('Hello World!', '_hello-world_') AS output;
结果
输出

TRUE

RETURN apoc.text.compareCleaned('Hello World!', '_hello-world_$') AS output;
结果
输出

TRUE

© . This site is unofficial and not affiliated with Neo4j, Inc.