apoc.text.compareCleaned

Function APOC Core

apoc.text.compareCleaned(text1, text2) - compare the given strings 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