diff --git a/mongotail/jsondec.py b/mongotail/jsondec.py
index <HASH>..<HASH> 100644
--- a/mongotail/jsondec.py
+++ b/mongotail/jsondec.py
@@ -23,7 +23,7 @@
 
 
 import re, json
-from bson import ObjectId, DBRef
+from bson import ObjectId, DBRef, regex
 from datetime import datetime
 
 REGEX_TYPE = type(re.compile(""))
@@ -37,7 +37,7 @@ class JSONEncoder(json.JSONEncoder):
             return "DBRef(Field(%sField), ObjectId(%sObjectId)DBRef)" % (o.collection, str(o.id))
         if isinstance(o, datetime):
             return "ISODate(" + o.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "ZISODate)"
-        if isinstance(o, REGEX_TYPE):
+        if isinstance(o, (REGEX_TYPE, regex.Regex)):
             return {"$regex": o.pattern}
         return json.JSONEncoder.default(self, o)
Added support to PyMongo <I>+ due its incompatibility with previous versions on some API calls and returned values.