Updated regex for updating and deleting css selector by name