Clearify regex example in docs

To avoid any confusion about whether the regex tests for complete or
just partial equality.
parent bce8f6a8
......@@ -785,7 +785,9 @@ Feature.enable(:ci_if_parenthesis_enabled)
### Storing regular expressions in variables
It is possible to store a regular expression in a variable, to be used for pattern matching:
It is possible to store a regular expression in a variable, to be used for pattern matching.
The following example tests whether `$RELEASE` contains either the
string `staging0` or the string `staging1`:
```yaml
variables:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment