Rewrite Endpoint Url without ? before endpoint

Ok, I got it, thanks for the point in the right direction guys!

add_rewrite_rule('^members/([^/]*)/([^/]*)/?', '^members/$matches[1]/?$matches[2]', 'top');