Checks if a given text matches a specified regular expression (regex) pattern. Regular expressions are sequences of characters that define a search pattern, primarily used for string matching and manipulation. This evaluation is crucial for validating text formats, extracting specific data, and ensuring that text adheres to predefined patterns.
text
content successfully matches the specified regex pattern
.text
content does not match the regex pattern
.Click here to learn how to setup evaluation using the Python SDK.
Input Type | Parameter | Type | Description |
---|---|---|---|
Required Inputs | text | string | The content to validate. |
Configuration Parameters | pattern | string | The regular expression pattern to match against. |
Output | Type | Description |
---|---|---|
Result | bool | Returns 1.0 if the text matches the regex pattern (Pass), 0.0 otherwise (Fail). |