Extract regex options

These should be extractDefines and extractRequires (don't put the Regex on the end).  It is intended that each of these options can only be a regex or a function and both regex and function cannot be active