Evaluate text against a regex.
POST/text/regex
Evaluates a given text against a provided regular expression and returns the matches.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
textstringrequired
The text to be evaluated.
Example:
The quick brown fox jumps over the lazy dog.
expressionstringrequired
The regular expression to evaluate against the text.
Example:
\b\w{4}\b
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
matchesstring[]required
The list of matches found in the text.
isValidRegexbooleanrequired
Whether the provided regular expression was valid.
{
"matches": [
"string"
],
"isValidRegex": true
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}