Minor fixes for Cli Output

- Used Regex backreference to when looking up style tags (See [Example #2 at php.net](php.net/manual/en/function.preg-match-all.php#refsect1-function.preg-match-all-examples))
- Used Regex [DOTALL modifier](http://php.net/manual/pl/reference.pcre.pattern.modifiers.php) for multi-line strings
- Code style