Giter Site home page Giter Site logo

tc39-propoal-progress-allowing-regexp's People

Contributors

bmeck avatar gibson042 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gibson042

tc39-propoal-progress-allowing-regexp's Issues

What would syntax/API look like?

Would it be a extends TransformStream class? A .feed() method? A .hitEnd property? An override of .exec() with two parameters? A flag like /regex/p?

I know this is way ahead of a stage -1 proposal. I'm just a curious user who wants to know what kind of API I could use in a ponyfill of a similar MyCustomProgressiveRegExp class.

You can close this issue if this question is too far in the future

Scope of backtracking for chunk manipulation purposes?

for a given set of text manipulating chunks: a and b and a pattern p:

// any <br> following another <br>
let p = /(?<=<br>)<br>/
let a = ''
let b = '<br>'

Match results from b would change if a changed to <br>. When matching just b individually it would be good to know if it backtracked to the start of b for lookbehind not just if it reached the end of b.

This is a slight oddity due to less ecosystem data on lookbehind. This could be in or out of scope depending.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.