Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-12-2019 12:18 PM
Regex patterns in Cypher do not appear to implement some PCRE features like lookahead or lookbehind. I am trying a pattern that works in www.regex101.com but not in cypher:
WITH [x in keys(row) WHERE x =~ '(?<=Test\\s)[\\w\\s]*(?=-Plate\\sID)' | x ] AS panels
I am escaping backslashes due to errors reported in console.
Solved! Go to Solution.
06-12-2019 11:59 PM
Neo4j is relying here on the JVM's regex implementation which is not listed as a flavour on www.regex101.com. See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for a syntax description.
06-12-2019 11:59 PM
Neo4j is relying here on the JVM's regex implementation which is not listed as a flavour on www.regex101.com. See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for a syntax description.
06-13-2019 03:56 AM
Thank you! This is the reference I need. I should have made the connection between Java and the implementation of regex that Neo4j uses.
All the sessions of the conference are now available online