From 2b92a9eefdd60d80f667d3ab68aa3b222e9f871d Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@paris.CS.Princeton.EDU>
Date: Tue, 25 Feb 2014 10:05:21 -0500
Subject: [PATCH] fix regex in pl_login_base()

---
 sfa/planetlab/plxrn.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfa/planetlab/plxrn.py b/sfa/planetlab/plxrn.py
index 8c146aac..2c24f1e2 100644
--- a/sfa/planetlab/plxrn.py
+++ b/sfa/planetlab/plxrn.py
@@ -99,7 +99,7 @@ class PlXrn (Xrn):
         
         # Fix up names of GENI Federates
         base = base.lower()
-        base = re.sub('\\\[^a-zA-Z0-9]', '', base)
+        base = re.sub('[\\\\]*[^a-zA-Z0-9]', '', base)
 
         if len(base) > 20:
             base = base[len(base)-20:]
-- 
2.47.0