Can we make this accept the start and end character as arguments so we could also use it for matching `{` `}` or `[` `]`