regexp-to-ast
regexp-to-ast copied to clipboard
Lookahead assertions are only semantically valid after an atom
> /(?=y)/.test("(?=y)")
true
> /x(?=y)/.test("x(?=y)")
false
Otherwise they are treated literally