I find PostgreSQL similar to operator works little strange. I accidentally checked for space in below query but surprised with the result.
select 'Device Reprocessing' similar to '%( )%' --return true
select 'Device Reprocessing' similar to '%()%' --return true
select 'DeviceReprocessing' similar to '%()%' --return true
Why 2nd and the 3rd query returns true? Is empty pattern always return true?
What I understand about SIMILAR TO operator is returns true or false depending on whether its pattern matches the given string.