I have this method to make a search
def self.search(search)
where("titulo LIKE ?", "([a-zA-Z0-9]*)[ X]*#{search}")
end
Right now doesn't recognize anything. I suspect it isn't recognizing the REGEX.
But i can't find any answers to how to use regex in the where clause
Does someone know?