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!

Hello @baderk.cs :slight_smile:

It works for me :confused:

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

Regards,
Cobra

1 Like

Thanks Cobra for your help!

1 Like