From 0f26932b66c6a34b1f47904ee2fd55824e2400c2 Mon Sep 17 00:00:00 2001 From: Leaf-Lin <39002973+Leaf-Lin@users.noreply.github.com> Date: Mon, 14 Dec 2020 13:29:00 +1100 Subject: [PATCH] Improve regexp description Adding some more text to have it more aligned with https://www.elastic.co/guide/en/elasticsearch/reference/current/regexp-syntax.html --- libbeat/docs/regexp.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/docs/regexp.asciidoc b/libbeat/docs/regexp.asciidoc index 8d138ffc2e1f..8764855e8b73 100644 --- a/libbeat/docs/regexp.asciidoc +++ b/libbeat/docs/regexp.asciidoc @@ -48,8 +48,8 @@ The following patterns are supported: |[[single-characters]]*Single Characters* 1+| |`x` |single character |`.` |any character -|`[xyz]` |character class -|`[^xyz]` |negated character class +|`[xyz]` |Match any one of the characters in the bracket. Inside the brackets, `-` indicates a range unless `-` is the first character or escaped +|`[^xyz]` |A `^` before a character in the brackets negates the character or range. This matches any character except 'x', 'y', or 'z' |`[[:alpha:]]` |ASCII character class |`[[:^alpha:]]` |negated ASCII character class |`\d` |Perl character class