[ticket/11288] fix hyphen in search

Adds test cases for search backends.
Fix regex in Postgres
http://tracker.phpbb.com/browse/PHPBB3-11288