This simplifies the logic when extracting the principal and allows more flexibility in the future by allowing the format and regex to be added as setters.
This simplifies the logic when extracting the principal and allows more flexibility in the future by allowing the format and regex to be added as setters.