Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-23-2022 04:14 AM
Hello Neos,
I have a graph with nodes containing properties with html-code. I would like to parse these html-properties to find the href an <a>-tags and the text to which the href is linked.
Any idea how to realize this by Cypher / APOC?
THX, JJJ
Solved! Go to Solution.
10-28-2022 02:29 AM
Hello @janezic 🙂
You can use a regex like in other languages and especially the apoc.text.regexGroups() function.
Regards,
Cobra
10-28-2022 02:21 AM
I guess since no-one replies there is no on-bard-solution for that, which brings me to the next question: if I have an html-text in one of my property nodes how could I loop through this property? I can get the length of the property (= length of html-text, but how do I write a cypher statement wich iterates from position 1 of this string to the last position of this string in steps of n characters?
10-28-2022 02:29 AM
Hello @janezic 🙂
You can use a regex like in other languages and especially the apoc.text.regexGroups() function.
Regards,
Cobra
10-28-2022 11:18 PM
This works very well, thank you for the hint.
JJJ
All the sessions of the conference are now available online