ErrCode compile (std::string pattern) Pre-compiles pattern and gives error code correspondingly. Parameters: pattern Input regular expression