Update index.js

added $regex support
e.g.
q='{"field":{"$regex":"/mygrep/", "$options":"i"}}'