Claude Pache (2015-10-09T13:53:25.000Z)
d at domenic.me (2015-10-12T20:38:50.190Z)
Note that full-featured lookbehind assertions (à la .NET) is not the only case where backward matching is useful. Consider for instance, the following simple method: ```js String.prototype.trimRight = function () { return this.replace(/\s+$/u, '') } ``` That implementation would be more efficient if we could instruct the regexp to be applied backwards.