apoc.text.snakeCase
Function APOC Core
apoc.text.snakeCase(text) YIELD value - Convert a string to snake-case
Usage Examples
RETURN apoc.text.snakeCase("test Snake Case") AS output;
output |
---|
"test-snake-case" |
RETURN apoc.text.snakeCase("FOO_BAR") AS output;
output |
---|
"foo-bar" |
RETURN apoc.text.snakeCase("Foo bar") AS output;
output |
---|
"foo-bar" |
RETURN apoc.text.snakeCase("fooBar") AS output;
output |
---|
"foo-bar" |
RETURN apoc.text.snakeCase("foo-bar") AS output;
output |
---|
"foo-bar" |
RETURN apoc.text.snakeCase("Foo bar") AS output;
output |
---|
"foo-bar" |
RETURN apoc.text.snakeCase("Foo bar") AS output;
output |
---|
"foo-bar" |