Skip to main content
Version: v1.0

Regex Evaluator

Regular Expressions (Regex) are sequences of characters that define search patterns, often used for pattern matching within strings. The Regex Test evaluator checks if the generated answer matches a regular expression pattern.

The evaluator takes the regex pattern, and whether to match or not match for that pattern.

Here are some examples:

OutputRegexMatch/MismatchEvaluator Output
The iPhone 6 has a 1024px screen.*iphone.*matchTrue
The Samsung galaxy has a 1024px screen.*Samsung.*mismatchFalse