now does prefix, exact, or regex matching too