cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to query with ignoring plural or singular word

Hello

I am sorry it is a newbie question. I researched about how I can make such a query. The following is what I want, but it gives an error.

MATCH (n:) WHERE n.name =~ 'car(s?)' return n;

I want to find nodes with either car or cars as a node name.

Thank you very much!

2 REPLIES 2

Hello @baderk.cs

It works for me

MATCH (n)
WHERE n.name =~ '(?i)car(s?)'
RETURN n

Regards,
Cobra

Thanks Cobra for your help!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online