Define PREG_BAD_UTF8_OFFSET_ERROR if it doesn't exist for HHVM
Add RegexException::getShortMessage
 Refactor tests base on newly added RegexException::getShortMessage
Add test for RegexException
Add test case for empty pattern usage in replace