nongreedy regex
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index 161de61..9387f1a 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.php
@@ -197,7 +197,7 @@
 	 */
 	function _match_pair($string, $variable)
 	{
-		if ( ! preg_match("|" . preg_quote($this->l_delim) . $variable . preg_quote($this->r_delim) . "(.+) ". preg_quote($this->l_delim) . '/' . $variable . preg_quote($this->r_delim) . "|s", $string, $match))
+		if ( ! preg_match("|" . preg_quote($this->l_delim) . $variable . preg_quote($this->r_delim) . "(.+?) ". preg_quote($this->l_delim) . '/' . $variable . preg_quote($this->r_delim) . "|s", $string, $match))
 		{
 			return FALSE;
 		}