Configurable identifier regex

This adds the option to adjust the regex used for validation of the identifier. Otherwise the validation fails if an URN ist used as the identifier.