apoc.text.clean

Details

Syntax

apoc.text.clean(text)

Description

Strips the given STRING of everything except alpha numeric characters and converts it to lower case.

Arguments

Name

Type

Description

text

STRING

The string to be stripped of all non-alphanumeric characters and converted to lowercase.

Returns

STRING

Usage Examples

RETURN apoc.text.clean('Hello World!') AS output;
Results
output

"helloworld"

RETURN apoc.text.clean('Hello___World!') AS output;
Results
output

"helloworld"

RETURN apoc.text.clean('$-Hello___World!$') AS output;
Results
output

"helloworld"