addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / flags / additionalProperties
Added value: +false
addedInput schema / properties / flags / description
Added value: +"Optional regex flag toggles assembled into a flag string. Omitted flags use their defaults."
addedInput schema / properties / flags / properties / dotAll / default
Added value: +false
addedInput schema / properties / flags / properties / dotAll / description
Added value: +"s flag: dot matches newline characters."
addedInput schema / properties / flags / properties / global / default
Added value: +true
addedInput schema / properties / flags / properties / global / description
Added value: +"g flag: find all matches rather than only the first."
addedInput schema / properties / flags / properties / ignoreCase / default
Added value: +false
addedInput schema / properties / flags / properties / ignoreCase / description
Added value: +"i flag: case-insensitive matching."
addedInput schema / properties / flags / properties / multiline / default
Added value: +false
addedInput schema / properties / flags / properties / multiline / description
Added value: +"m flag: anchors caret and dollar match at line boundaries."
removedInput schema / properties / flags / required
Removed value: -[
- "global",
- "ignoreCase",
- "multiline",
- "dotAll"
-]
addedInput schema / properties / pattern / description
Added value: +"The regular expression body without slashes or inline flags (for example a digit-class pattern). Must not be blank; an invalid pattern returns an error field instead of throwing."
addedInput schema / properties / replacement / default
Added value: +""
addedInput schema / properties / replacement / description
Added value: +"Optional replacement string for a find-and-replace preview (supports dollar-1 and named backreferences). When blank, replaceResult is empty. Also accepted under the legacy key replacePattern."
addedInput schema / properties / testString
Added value: +{
+ "description": "The sample text the pattern is run against. Must not be blank. Also accepted under the legacy key text.",
+ "type": "string"
+}
removedInput schema / properties / text
Removed value: -{
- "type": "string"
-}
changedInput schema / required
Previous value: -[
- "pattern",
- "text",
- "flags",
- "replacement"
-]New value: +[
+ "pattern",
+ "testString"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "error": {
+ "description": "Null on success; an invalid-regex-pattern message when compilation failed.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "flagOptions": {
+ "description": "The effective flag toggles after defaults were applied.",
+ "properties": {
+ "dotAll": {
+ "description": "Whether the s flag was applied.",
+ "type": "boolean"
+ },
+ "global": {
+ "description": "Whether the g flag was applied.",
+ "type": "boolean"
+ },
+ "ignoreCase": {
+ "description": "Whether the i flag was applied.",
+ "type": "boolean"
+ },
+ "multiline": {
+ "description": "Whether the m flag was applied.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "flags": {
+ "description": "The resolved flag string built from the flags object (for example gi).",
+ "type": "string"
+ },
+ "matches": {
+ "description": "One entry per match (or a single entry when global is false).",
+ "items": {
+ "properties": {
+ "captures": {
+ "description": "Captured group values in order; a group that did not participate is null.",
+ "items": {
+ "description": "A single captured group value, or null.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": "array"
+ },
+ "end": {
+ "description": "Zero-based offset one past the end of the match.",
+ "type": "integer"
+ },
+ "index": {
+ "description": "Zero-based start offset of the match in the text.",
+ "type": "integer"
+ },
+ "text": {
+ "description": "The full matched substring.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "pattern": {
+ "description": "The submitted regex pattern, echoed back.",
+ "type": "string"
+ },
+ "patternAnalysis": {
+ "description": "Structural summary of the pattern, or null when the pattern or text was empty.",
+ "properties": {
+ "captureGroups": {
+ "description": "Count of unescaped capture groups detected.",
+ "type": "integer"
+ },
+ "flags": {
+ "description": "The resolved flag string.",
+ "type": "string"
+ },
+ "hasAnchors": {
+ "description": "Whether the pattern contains an anchor (caret or dollar).",
+ "type": "boolean"
+ },
+ "hasCharClasses": {
+ "description": "Whether the pattern contains a character class.",
+ "type": "boolean"
+ },
+ "hasQuantifiers": {
+ "description": "Whether the pattern contains a quantifier (star, plus, question mark, or brace).",
+ "type": "boolean"
+ },
+ "length": {
+ "description": "Character length of the pattern.",
+ "type": "integer"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "replaceResult": {
+ "description": "The text after applying replacement, or empty when no replacement was given.",
+ "type": "string"
+ },
+ "replacement": {
+ "description": "The submitted replacement string, echoed back.",
+ "type": "string"
+ },
+ "success": {
+ "description": "True when the pattern compiled and ran without error.",
+ "type": "boolean"
+ },
+ "text": {
+ "description": "The submitted test string, echoed back.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}