Fixes regex error documented in #385

Fixes code to ignore invalid selectors and capture full css selector associated with a pseudo element. Also captures multiple selectors if multiple pseudo elements exist in a comma separated css rule.