I want to pull a particular field from a postgres table that conforms to this pattern:
/^Untitled Deal \d+$/
For example:
Untitled Deal 1
Untitled Deal 2
Untitled Deal 3
I have the query in postgres which is not working:
SELECT "name" FROM "deals" WHERE ("name" ILIKE '/^Untitled Deal \\d+$/');
Can anyone point out what I am doing wrong?