blob: 5405b91fdf2734d46a732e50b7e8733982fa4387 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
v the match any statements are like: match `hallo`, `hallobob`, `hallobier`
Negative lookahead: `hallo(?!blaat)`: match any hallo but not in halloblaat
Positive lookahead: `hallo(?=blaat)`: only match hallo in halloblaat
---
Negative lookbehind: `(?<!hallo)blaat` : match any blaat except in halloblaat
Positive lookbehind: `(?<=hallo)blaat` : only match blaat in halloblaat
> Look behind has limited browser compatibility
|