apoc.text.compareCleaned

Function

apoc.text.compareCleaned(text1 String, text2 String) - compares two 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