apoc.text.compareCleaned

Function

apoc.text.compareCleaned(text1 STRING, text2 STRING) - compares two given STRING values stripped of everything except alpha numeric characters converted to lower case.

Signature

apoc.text.compareCleaned(text1 :: STRING, text2 :: STRING) :: BOOLEAN

Input parameters

Name Type Default

text1

STRING

null

text2

STRING

null

Usage Examples

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

TRUE

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

TRUE