Question: I would like to get all documents that contain a certain string in them, I can't seem to find a solution for it..

for example I have the following doc ids

```
vw_10
vw_11
bmw_12
vw_13
bmw_14
volvo_15
vw_16

```

how can I get allDocs with the string vw\_ "in" it?

Answer: 
Use [batch fetch API](http://pouchdb.com/api.html#batch_fetch):

```
db.allDocs({startkey: "vm_", endkey: "vm_\ufff0"})

```

Note: `\ufff0` is the highest Unicode character which is used as sentinel to specify ranges for ordered strings.
You can use PouchDB find plugin API which is way more sophisticated than allDocs IMO for querying. With the PouchDB find plugin, there is a regex search operator which will allow you do exactly this. 

```
db.find({selector: {name: {$regext: '/vw_'}}});

```

It's in BETA at the time of writing but we are about to ship a production app with it. That's how stable it has been so far. See <https://github.com/nolanlawson/pouchdb-find> for more on Pouch Db Find