Generic support for extracting GMail-style search keywords/values from strings