fix for regex content for edge cases like .content:after {}