Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Request Manager > Predefined Dynamic Components > Predefined Request Selectors > The Test Query Match Request Selector
  
The Test Query Match Request Selector
The Test Query Match request selector is implemented by the com.arbortext.e3.TestQueryMatch class. It evaluates an HTTP request and returns true if the request includes an HTTP query parameter with a specific value. It accepts two parameters, query-name, which specifies the name of the query parameter to test, and query-pattern, which specifies a pattern that the HTTP query parameter value must match. Any standard Java pattern, including regular expressions, can be used for the query-pattern parameter value. For compatibility with earlier releases of Arbortext Publishing Engine, if the Arbortext PE Request Manager finds that the value of a query-pattern parameter is not a valid Java regular expression and contains “*” or “?” characters, Arbortext PE Request Manager will treat the pattern as a regular expression, converting “*” to “.*” and “?” to “.”.