made precompiled regexes public
added accessor functions