Matchers work on data that was gathered using
They take data and an argument and return either
TRUE if the data
matches the argument,
FALSE if not.
Matchers may process different kinds of data:
Note: It is allowed to process numbers as text. This is valid:
HTTP Status Starts With "3"
The following text processing matchers are available:
Each matcher can also be negated by the according negative matches:
The Is Like matcher supports an asterix as wildcard character, that matches arbitrary many characters.
Path Is Like "/category/*/top-products.html"
Note that without a starting asterix, the given string must start with the pattern. If you use a trailing asterix, the match fits the whole string, else it would fit the shortest possible match. This is relevant when used with URL rewriting.
When defining a match - especially when using Starts With or Ends With - be sure what the scope contains. Also have in mind that regular expressions are powerful but may also be confusing. Don't hesitate to contact us, if you have any questions. We are always eager to help.
There are a lot of regular expression testers on the web, just search for "java regex tester". We particularly liked these:
Contains, Ends With, and Starts With do not support wildcards! Use Is Like or regular expressions for that.
The following number related matchers are available to compare the input to a given value:
To compare numbers for equality, use
Does Not Equal.
Note: Passing text into number based matchers leads to an error.