add RegexGuard::validateRegexOrFail method
add tests for RegexGuard::validateRegexOrFail
add docs for RegexGuard::validateRegexOrFail