apoc.text.snakeCase
Function
apoc.text.snakeCase(text STRING)
- converts the given 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" |