I have the following expression:
where('publishedDate').gte(new Date('2015-08-21T20:37:45.176Z')).sort({ field: 'asc', test: -1 });
that I would like to parse into the following tokens using javascript's string::split(regex):
where
('publishedDate')
gte
(new Date('2015-08-21T20:37:45.176Z'))
sort
({ field: 'asc', test: -1 })
but I'm having a hard time coming up with a suitable expression that does it. Any help is greatly appreciated!