You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi and first of all thanks for the great work on this library!
I could not figure out yet if there is a way to find entries that contain a certain string.
With the starting letter it works well:
var family = jsonQ(myjson);
var result = family.find('name', function () {
return this[0] == 'f'
});
This will of course return all entries that start with an f. Is there a way to use wildcards or such to query entries that contain a certain string e.g. return this == '%xyz%''
and return for example all entries that are like "foo xyz bar", "barfoo xyz" etc...
Thank you very much in advance!
Stefan
The text was updated successfully, but these errors were encountered:
Hi and first of all thanks for the great work on this library!
I could not figure out yet if there is a way to find entries that contain a certain string.
With the starting letter it works well:
var family = jsonQ(myjson);
var result = family.find('name', function () {
return this[0] == 'f'
});
This will of course return all entries that start with an f. Is there a way to use wildcards or such to query entries that contain a certain string e.g. return this == '%xyz%''
and return for example all entries that are like "foo xyz bar", "barfoo xyz" etc...
Thank you very much in advance!
Stefan
The text was updated successfully, but these errors were encountered: