Commit 942b3bd8 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'rechvs-master-patch-98024' into 'master'

Clearify regex example in docs

See merge request gitlab-org/gitlab!50771
parents 8130e589 2be5ba23
......@@ -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