Add a core-extensions class for personal extensions to core classes.

Allows REGEX1 | REGEX2 to be a combined regex match.