I am currently using Redis, but examples in any database (which is good with NodeJS) would be nice to make me move.
I am looking to find regex patterns from a list, providing potential matches.
I want to query my template database and ask her - "which templates will match this string?"
Example
Template 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?
Darren l
source share