preg_matching logic fix...