--- a/zktop.py
+++ b/zktop.py
@@ -83,7 +83,7 @@
 class Session(object):
     def __init__(self, session, server_id):
         # allow both ipv4 and ipv6 addresses
-        m = re.search('/([\da-fA-F:\.]+):(\d+)\[(\d+)\]\((.*)\)', session)
+        m = re.search(r'/([\da-fA-F:\.]+):(\d+)\[(\d+)\]\((.*)\)', session)
         self.host = m.group(1)
         self.port = m.group(2)
         self.server_id = server_id
@@ -104,7 +104,7 @@
 
             sio = StringIO(stat)
             line = sio.readline()
-            m = re.search('.*: (\d+\.\d+\.\d+)-.*', line) # e.g. nodecount:0 zxid:0x0 sessions:0o att
+            m = re.search(r'.*: (\d+\.\d+\.\d+)-.*', line) # e.g. nodecount:0 zxid:0x0 sessions:0o att
             self.version = m.group(1) # raise Exception when stat response empty
             sio.readline()
             self.sessions = []
