Neo4j: invalid input in cypher
<p>I'm working on a project which aims to build a system to retrieve biomedical information (e.g. biomedical entities such as drugs, diseases and genes, and the relationships between them). When I tried to retrieve the database to find a specific disease using a cypher statement:</p>
<p>For cypher string <code>MATCH (m:Disease) WHERE m.disease_name =~ '(?i)&quot;+disease+&quot;' RETURN m</code>;</p>
<p>if the disease with a name of <code>2'-benzoyloxycinnamaldehyde</code> or <code>4-[1-ALLYL-7-(TRIFLUOROMETHYL)-1H-INDAZOL-3-YL]BENZENE-1,3-DIOL</code>, exceptions will occur with messages as follows:</p>
<blockquote>
<blockquote>
<p>Invalid input '&quot;': expected 0..9, '.', 'e', 'E', an identifier character, whitespace, node labels, '[', &quot;=~&quot;, IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', &quot;&lt;&gt;&quot;, &quot;!=&quot;, '&lt;', '&gt;', &quot;&lt;=&quot;, &quot;&gt;=&quot;, AND, XOR, OR, LOAD CSV, START, MATCH, UNWIND, MERGE, CREATE, SET, DELETE, REMOVE, FOREACH, WITH, RETURN, UNION, ';' or end of input (line 1, column 53 (offset: 52))
&quot;MATCH (n1:Drug)-[x]-(n2:Disease) RETURN  n1 LIMIT 25&quot;&quot;</p>
</blockquote>
</blockquote>
<p>How could I fix this problem? Thank you so much!</p>