For cypher string "MATCH (m:Disease) WHERE m.disease_name =~ '(?i)"+disease+"' RETURN m";
if the disease with a name of "2'-benzoyloxycinnamaldehyde" or "4-[1-ALLYL-7-(TRIFLUOROMETHYL)-1H-INDAZOL-3-YL]BENZENE-1,3-DIOL" , exceptions will occur with messages as follows:
Invalid input '"': expected 0..9, '.', 'e', 'E', an identifier character, whitespace, node labels, '[', "=~", IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', "<>", "!=", '<', '>', "<=", ">=", 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))
"MATCH (n1:Drug)-[x]-(n2:Disease) RETURN n1 LIMIT 25""
How could I fix this problem? Thank you so much!