[966896] Modified regular expression to split selector and pseudo classes, and fixed check of selectorText to the newly entered value