add optional PCRE validation for attributes + transmit attributes parser as 4th parameter of the shortcode callback