Comments (4)
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.
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:
- The user decides whether he wants the input URL pattern to be treated as a single piece, like this:
-
For each of the input field the user would choose type of pattern to use: regexp or wildcard.
-
Both types of patterns would provide referable capture groups, so that captured strings could be reused in the output URL.
from requestcontrol.
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.
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)
- a few questions regarding usage HOT 2
- Default rule suggestion
- Changing user-agent HOT 4
- add option for individual rule to enable/disable counter
- [Feature request] Changes in the rules TLD field
- [Feature request] Default rule set after installation HOT 2
- Question: how do I subscribe to [these rules](https://github.com/tumpio/requestcontrol/tree/master/rules)?? HOT 7
- Destructive actions should be behind a prompt
- "Top-level domains" field isn't displayed automatically
- Filter URLs by method
- scheme filed should be extended with ws:// and wss://
- [question] Is there a way to match a question-mark literally without using regexp? HOT 2
- https to http CORS failed
- Make a new official release? HOT 3
- privacy-images-1 break some images on https://booknode.com/ HOT 1
- Internal links (single page navigation) not being processed on YouTube HOT 1
- "No change" when testing uncreated rules
- Idea: random redirect HOT 1
- redirecting based on ip:port?
- Redirector does not works properly with CORS-Stricted website HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from requestcontrol.