note to self; more efficient non-capture group?

Need to examine optional parameters and capture groups