From 1ee2a8875f959300dc0f930d0576b35f2007b542 Mon Sep 17 00:00:00 2001 From: Yangze Guo Date: Fri, 4 Jan 2019 19:51:51 +0800 Subject: [PATCH] [hotfix][docs] Fix incorrect example in cep doc --- docs/dev/libs/cep.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/dev/libs/cep.md b/docs/dev/libs/cep.md index 0519dbc3662..ab44b5c99da 100644 --- a/docs/dev/libs/cep.md +++ b/docs/dev/libs/cep.md @@ -1334,7 +1334,7 @@ For example, for a given pattern `b+ c` and a data stream `b1 b2 b3 c`, the diff Have a look also at another example to better see the difference between NO_SKIP and SKIP_TO_FIRST: -Pattern: `(a | c) (b | c) c+.greedy d` and sequence: `a b c1 c2 c3 d` Then the results will be: +Pattern: `(a | b | c) (b | c) c+.greedy d` and sequence: `a b c1 c2 c3 d` Then the results will be: @@ -1349,12 +1349,11 @@ Pattern: `(a | c) (b | c) c+.greedy d` and sequence: `a b c1 c2 c3 d` Then the r a b c1 c2 c3 d
b c1 c2 c3 d
c1 c2 c3 d
- c2 c3 d
- + - + -- GitLab
After found matching a b c1 c2 c3 d, the match process will not discard any result.
SKIP_TO_FIRST[b*]SKIP_TO_FIRST[c*] a b c1 c2 c3 d
c1 c2 c3 d
@@ -1383,7 +1382,7 @@ Pattern: `a b+` and sequence: `a b1 b2 b3` Then the results will be:
After found matching a b1, the match process will not discard any result.
SKIP_TO_NEXT[b*]SKIP_TO_NEXT a b1