add compile option parsing
inline regex match calls instead of used precompiled ones