in reply to Moose RegexpRef

Type constraint error is probably from the default. Your default is a string, not a regexp ref. Just don't set a default at all.