Capturing (instead of character class) and then having an unused parameter will solve this. Is deciding between the two solutions a style preference or are there practical reasons for choosing one over the other?