summaryrefslogtreecommitdiff
path: root/doc/ci/variables/README.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-02 00:07:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-02 00:07:41 +0000
commit42263d6451c0af3c0e7a61747ffb046a806e4477 (patch)
tree989941de7bbf543963942e7d9a4b1b89bdf7e386 /doc/ci/variables/README.md
parent2412ddf03da787012161ea1e8a03787275f9cde9 (diff)
downloadgitlab-ce-42263d6451c0af3c0e7a61747ffb046a806e4477.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/variables/README.md')
-rw-r--r--doc/ci/variables/README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index 643ccd45898..c768c833e7c 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -571,9 +571,12 @@ Below you can find supported syntax reference:
- `$VARIABLE =~ /^content.*/`
- `$VARIABLE_1 !~ /^content.*/` (introduced in GitLab 11.11)
- It is possible perform pattern matching against a variable and regular
- expression. Expression like this evaluates to truth if matches are found
- when using `=~`. It evaluates to truth if matches are not found when `!~` is used.
+ Variable pattern matching with regular expressions uses the
+ [RE2 regular expression syntax](https://github.com/google/re2/wiki/Syntax).
+ Expressions evaluate as `true` if:
+
+ - Matches are found when using `=~`.
+ - Matches are *not* found when using `!~`.
Pattern matching is case-sensitive by default. Use `i` flag modifier, like
`/pattern/i` to make a pattern case-insensitive.