apoc.text.slug

Function

apoc.text.slug(text STRING, delimiter STRING) - replaces the whitespace in the given STRING with the given delimiter.

Signature

apoc.text.slug(text :: STRING, delim = - :: STRING) :: STRING

Input parameters

Name Type Default

text

STRING

null

delim

STRING

-

Usage Examples

RETURN apoc.text.slug("Neo4j Aura") AS output;
Table 1. Results
output

"Neo4j-Aura"

The default delimiter is -. We can, however, pass in a custom delimiter as the second parameter:

RETURN apoc.text.slug("Neo4j Aura", ".") AS output;
Table 2. Results
output

"Neo4j.Aura"