Use re in stead of regex, so we get rid of the annoying warning during startup.
diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py
index 8c1662d..11b0276 100644
--- a/Mac/Tools/IDE/Wtext.py
+++ b/Mac/Tools/IDE/Wtext.py
@@ -603,9 +603,9 @@
 				self.drawselframe(1)
 
 
-import regex
-commentPat = regex.compile("[ \t]*\(#\)")
-indentPat = regex.compile("\t*")
+import re
+commentPat = re.compile("[ \t]*\(#\)")
+indentPat = re.compile("\t*")
 
 class PyEditor(TextEditor):
 	
@@ -659,9 +659,9 @@
 		snippet = self.getselectedtext()
 		lines = string.split(snippet, '\r')
 		for i in range(len(lines)):
-			res = commentPat.match(lines[i]) >= 0
-			if res > 0:
-				pos = commentPat.regs[1][0]
+			m = commentPat.match(lines[i])
+			if m:
+				pos = m.start(1)
 				lines[i] = lines[i][:pos] + lines[i][pos+1:]
 		snippet = string.join(lines, '\r')
 		self.insert(snippet)
@@ -676,8 +676,9 @@
 		indent = 3000 # arbitrary large number...
 		for line in lines:
 			if string.strip(line):
-				if indentPat.match(line):
-					indent = min(indent, indentPat.regs[0][1])
+				m = indentPat.match(line)
+				if m:
+					indent = min(indent, m.regs[0][1])
 				else:
 					indent = 0
 					break