Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 10457)
+++ wp-includes/post-template.php	(working copy)
@@ -607,7 +607,7 @@
 	$current_page = 0;
 
 	// sanitize, mostly to keep spaces out
-	$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
+	$r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']);
 
 	// Allow plugins to filter an array of excluded pages
 	$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
Index: wp-includes/class-phpmailer.php
===================================================================
--- wp-includes/class-phpmailer.php	(revision 10457)
+++ wp-includes/class-phpmailer.php	(working copy)
@@ -1409,7 +1409,7 @@
    */
   function EncodeQ ($str, $position = 'text') {
     /* There should not be any EOL in the string */
-    $encoded = preg_replace("[\r\n]", '', $str);
+    $encoded = preg_replace("/[\r\n]/", '', $str);
 
     switch (strtolower($position)) {
       case 'phrase':
Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 10457)
+++ wp-includes/formatting.php	(working copy)
@@ -1960,7 +1960,7 @@
  * @return string
  */
 function tag_escape($tag_name) {
-	$safe_tag = strtolower( preg_replace('[^a-zA-Z_:]', '', $tag_name) );
+	$safe_tag = strtolower( preg_replace('/[^a-zA-Z_:]/', '', $tag_name) );
 	return apply_filters('tag_escape', $safe_tag, $tag_name);
 }
 
