diff options
Diffstat (limited to 'test-cases/case2_lookahead/script.sh')
| -rw-r--r-- | test-cases/case2_lookahead/script.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-cases/case2_lookahead/script.sh b/test-cases/case2_lookahead/script.sh index 1a2226b..a77eb85 100644 --- a/test-cases/case2_lookahead/script.sh +++ b/test-cases/case2_lookahead/script.sh @@ -36,3 +36,15 @@ match x1 aa no match x1 ax no match x1 axx no match x1 aax no + +fun x2 { + case $1 { + x(?=foo)(?=...bar).* { echo yes } + .* { echo no } + } +} +match x2 xfoobar yes +match x2 xfoobar_some_more_stuff yes +match x2 x___bar no +match x2 xfoo___ no +match x2 xfoo no |
