There is this idea I have and that I want to push forward about "non-string regular expressions". I explained things as I could on the repo.
Non-String Regular Expressions
Regular expressions are used to match strings of characters, however the concept can be applied to anything else. This engine allows you to match any list of any type of objects using the same kind of constructs that regular expressions allow.
The algorithm is (far away but) based on this article by Russ Cox, aka uses the Thomson NFA algorithm (because it's apparently more efficient but mostly because it's the first explanation of a RE engine that I understood).
However the package doesn't support (yet?) the regular expression syntax that everybody is used to (because it allows to do different things).
Note — The current implementation is a pile of crap because I have no idea what I'm doing
pip install nsre
Then from your project you can
from nsre import *
By example, suppose that you have a list of dictionaries with a…
I'm looking for all kinds of feedbacks
- Do you understand what this is?
- Do you see applications for this?
- Does the API look nice?
- What features would you want to see around that?
- What would you want before using this in production?