I'm currently using Redis, but examples in any database (that are good with NodeJS) would be good to get me going.
I'm looking to find Regex Patterns from a list, by providing potential matches.
I want to query my database of patterns and ask it - "which patterns would match this string?"
Example
Pattern Database:
(\/some\/)
(\/relative\/)
(\/other\/)
Search: "/some/relative/url/"
Return:
(\/some\/)
(\/relative\/)
Search: "/some/other/url/"
Return:
(\/some\/)
(\/other\/)
So my question is: is this possible? If so, how?