I'm not sure if this will work, but if you want to allow a trailing comma, my guess would be that you want ','? immediately before the ')' and it will then keep going?