Added regex option to validate options
Support deprecation information from constants
Land #3185, regex option validation
Land #3293, module deprecation constants