Unify two regexes used in rating searches, intersect with user privs

Fixes issue with unpriveleged users being able to circumvent the ratings
they could see, just by searching for it.  Also makes code much much
prettier.