I try to parse CSS by regex (PHP preg_match_all) like
preg_match_all
([^{]+)\\s*\\{\\s*([^}]+)\\s*}
but the problem is when there is an inner <