apoc.text.replace
Function
apoc.text.replace(text String, regex String, replacement String)
- finds and replaces all matches found by the given regular expression with the given replacement.
Usage Examples
RETURN apoc.text.replace('Hello World!', '[^a-zA-Z]', '') AS output;
output |
---|
"HelloWorld" |
RETURN apoc.text.replace('GDS is a Neo4j Product', 'GDS', 'Bloom') AS output;
output |
---|
"Bloom is a Neo4j Product" |
Was this page helpful?