--- src/authplugins/ip.cpp.old	2005-12-30 13:53:30.000000000 +0100
+++ src/authplugins/ip.cpp	2005-12-30 14:11:16.000000000 +0100
@@ -251,9 +251,12 @@
 
 	// compile regexps for determining whether a list entry is an IP, a subnet (IP + mask), or a range
 	RegExp matchIP, matchSubnet, matchRange;
-	matchIP.comp("^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$");
-	matchSubnet.comp("^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\/\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$");
-	matchRange.comp("^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\-\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$");
+
+	matchIP.comp("^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$");
+
+	matchSubnet.comp("^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}\\/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$");
+
+	matchRange.comp("^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}\\-[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}");
 
 	// read in the file
 	String line;
@@ -281,8 +284,8 @@
 			warn = true;
 		}
 #ifdef DGDEBUG
-		std::cout << "key: " << key << std::endl;
-		std::cout << "value: " << value.toInteger() << std::endl;
+		std::cout << "key: \"" << key << "\"" << std::endl;
+		std::cout << "value: \"" << value.toInteger() << "\"" << std::endl;
 #endif
 		// store the IP address (numerically, not as a string) and filter group in either the IP list, subnet list or range list
 		if (matchIP.match(key.toCharArray())) {

