Return A Regex Pattern From A Search In Database (nodejs)
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 pote
Solution 1:
This is not possible (to my knowledge) using only redis call. I suggest loading all the regular expressions from the database and running them in javascript to figure out which ones match.
Solution 2:
I think there is a way to that. You need to treat the pattern to be stored as a string, then retrieve them as you retrieve any other string from the redis datastore. Just for your reference I am giving a link to redis-nodejs tutorial I found - Using Redis With Nodejs.
Post a Comment for "Return A Regex Pattern From A Search In Database (nodejs)"