I have list of song titles like these
And Can It Be That I Should Gain?
Problem is when i do an exact case insensitive search ? is treated as regex character and i dont get search results as expected.
So how do i encode song title so title itslef is not treated as regex
Please advise
{
"data.title": {
"$regex": "^And Can It Be That I Should Gain?$",
"$options": "i"
}
}