apoc.text.compareCleaned

Details

Syntax

apoc.text.compareCleaned(text1, text2)

Description

Compares two given STRING values stripped of everything except alpha numeric characters converted to lower case.

Arguments

Name

Type

Description

text1

STRING

The first string to be stripped of all non-alphanumeric characters and compared to the second string.

text2

STRING

The second string to be stripped of all non-alphanumeric characters and compared to the first string.

Returns

BOOLEAN

Usage Examples

RETURN apoc.text.compareCleaned('Hello World!', '_hello-world_') AS output;
Results
output

TRUE

RETURN apoc.text.compareCleaned('Hello World!', '_hello-world_$') AS output;
Results
output

TRUE