Giter VIP home page Giter VIP logo

Comments (4)

tumpio avatar tumpio commented on June 20, 2024

Can you give me some information what this feature request would solve? Where would you specifically need support for regular expression?

In general, matching using regexp is slow. RC currently only supports using plain Match patterns (that is the pattern scheme for the background webRequest API).

from requestcontrol.

Drugoy avatar Drugoy commented on June 20, 2024

Can you give me some information what this feature request would solve? Where would you specifically need support for regular expression?

Sometimes I need to reference some sub-string from the value of the parameter and reference to it (re-use it in the 'redirect to' URL).
Your add-on only provides referencing to the whole value of the named parameter and optionally a substring from it using a fixed length offset, while I might need an offset of the various length.

I know that regex is slow, so it would be awesome if you added it to the currently available type of patterns, not replaced them.

Ideally would be if you would modify the the current GUI in such a way:

  1. The user decides whether he wants the input URL pattern to be treated as a single piece, like this:

or whether it should be chopped into parts like it is currently done in your add-on:

  1. For each of the input field the user would choose type of pattern to use: regexp or wildcard.

  2. Both types of patterns would provide referable capture groups, so that captured strings could be reused in the output URL.

from requestcontrol.

Drugoy avatar Drugoy commented on June 20, 2024

Now that you've shown in issue 34 how to do that (tricky, but at least it's possible!) - I guess this issue can also be closed.

from requestcontrol.

Drugoy avatar Drugoy commented on June 20, 2024

p.s.: feel free to re-open issues 34 and 35 if you'd like to improve the UI or something.

from requestcontrol.

Related Issues (20)

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.