Pseudo elements and pseudo selectors in CSS can be differentiated by using different number of
: (colon), as suggested in the related CSS3 specification module.
Regular expression for finding possible usages of single colons, such as
Replace with, thus using the three matched values with inserted additional colon:
The regular expression could be extended by adding all the pseudo elements defined in the specification, such as
Essentially making this change will drop the support for IE8, as can be seen via browser support table at Mozilla Developer site.