Add regular expressions lookbehind

Waldemar Horwat waldemar at
Mon Sep 30 15:55:35 PDT 2013

No one has yet submitted a well-defined proposal for lookbehinds on the table.  Lookbehinds are difficult to translate into the language used by the spec and get quite fuzzy when the order of evaluation of parts of the regexp matters, which is what happens if capturing parentheses are involved.  Where do you start looking for the lookbehind?  Shortest first, longest first, or reverse string match?  Greedy or not?  Backtrack into capturing results?


On 09/28/2013 01:54 PM, Sebastian Zartner wrote:
> I wonder if the discussion about lookbehinds[1] and Marc Harter's proposal for them[2] in the past led to anything.
> I'd really like to see these implemented in ECMAScript specification and it seems I am not the only one.[3][4][5] This even caused people to try to mimic them.[6]
> So I wanted to pick up the discussion again and ask, what info was missing that they didn't get specified?
> Sebastian
> [1]
> [2]
> [3]
> [4]
> [5]
> [6]
> _______________________________________________
> es-discuss mailing list
> es-discuss at

More information about the es-discuss mailing list