regexp-to-ast icon indicating copy to clipboard operation
regexp-to-ast copied to clipboard

Lookahead assertions are only semantically valid after an atom

Open bd82 opened this issue 6 years ago • 0 comments

> /(?=y)/.test("(?=y)")
true
> /x(?=y)/.test("x(?=y)")
false

Otherwise they are treated literally

bd82 avatar Apr 10 '18 18:04 bd82