Index: wp-includes/rewrite.php
===================================================================
--- wp-includes/rewrite.php	(revision 23582)
+++ wp-includes/rewrite.php	(working copy)
@@ -341,7 +341,7 @@
 		if ( !empty($url) && ($url != $request) && (strpos($match, $url) === 0) )
 			$request_match = $url . '/' . $request;
 
-		if ( preg_match("!^$match!", $request_match, $matches) ) {
+		if ( preg_match("#^$match#", $request_match, $matches) ) {
 
 			if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
 				// this is a verbose page match, lets check to be sure about it
@@ -351,7 +351,7 @@
 
 			// Got a match.
 			// Trim the query of everything up to the '?'.
-			$query = preg_replace("!^.+\?!", '', $query);
+			$query = preg_replace("#^.+\?#", '', $query);
 
 			// Substitute the substring matches into the query.
 			$query = addslashes(WP_MatchesMapRegex::apply($query, $matches));
