I have a collection with a bunch of documents. I want to find within a large string object (an unformatted key/value) and extract data from it.
Is it possible to use something like this:
db.apps.find({config: '/\n\n(.*) = (.*)\n\n?/'})
to extract these pair of values?
I'm trying to do this with php, but is getting really slow.
How can I find a clean way to solve it?