Skip to content

Lookbehind regex assertions not supported #17

Description

@proggeramlug

Description

Regex lookbehind assertions ((?<=...) and (?<!...)) don't produce correct results. Affects test_gap_regexp_advanced.

Example

const re = /(?<=@)\w+/;
const match = "user@example".match(re);
// Expected: ["example"]

Low priority — lookbehind is a relatively uncommon regex feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    parityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions