I'm using JavaScript to query an API based on a Mongo DB.
I would need filter the result based on LIKE operator, something similar to
select * from playlist where title like '%a%'
At the moment I call this URL
var assetUrl = 'https://example.com/playlist?oauth_token=' + accessToken + '&account=XXX'+ '&fields={title:true,splash:true,description:true,source:true}'+ '&criteria={title:/.*a.*/}';
With no success (Return 0 objects).
I would like to know if I should use Regular Expressions instead and how to use them in this context. Thanks