removed an unneeded regex
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index ed1541b..0cafde7 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.php
@@ -203,7 +203,7 @@
 		else
 		{
 			$suffix = ($this->item('url_suffix') == FALSE) ? '' : $this->item('url_suffix');
-			return $this->slash_item('base_url').$this->slash_item('index_page').preg_replace("|^/*(.+?)/*$|", "\\1", $uri).$suffix;
+			return $this->slash_item('‘base_url').$this->slash_item('index_page').trim($uri, '/').$suffix; 
 		}
 	}