...
Match mode determines how the order of the input lines or regular expressions affects evaluation of the condition against the selected source.
Mode | Order required | Content allowed between matches |
Loose | No | Yes |
Sequential | Yes | Yes |
Strict | Yes | No |
...
Choosing the Right Match Mode
Use case | Recommended mode |
Verify several independent configuration lines exist | Loose |
Verify the order of configuration commands | Sequential |
Verify an exact configuration block | Strict |
...