CSS regex pattern matching fixes