selector and regular expression matching