addedInput schema / properties
Added value: +{
+ "caseSensitive": {
+ "default": false,
+ "description": "When false (default), matching ignores letter case. When true, case must match exactly.",
+ "type": "boolean"
+ },
+ "findText": {
+ "description": "Substring or regex pattern to find. Must not be empty (empty returns HTTP 400). Interpreted as a regular expression when useRegex is true.",
+ "type": "string"
+ },
+ "replaceAll": {
+ "default": true,
+ "description": "When true (default), replaces every match. When false, replaces only the first match.",
+ "type": "boolean"
+ },
+ "replaceText": {
+ "default": "",
+ "description": "Replacement string substituted for each match. Defaults to empty (which deletes matches).",
+ "type": "string"
+ },
+ "text": {
+ "description": "Source text to search within. Must not be empty (empty returns HTTP 400).",
+ "type": "string"
+ },
+ "useRegex": {
+ "default": false,
+ "description": "When true, findText is treated as a JavaScript regular expression. An invalid pattern returns HTTP 400.",
+ "type": "boolean"
+ }
+}
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "options": {
+ "description": "Echo of the normalized options applied.",
+ "properties": {
+ "caseSensitive": {
+ "description": "Whether matching was case-sensitive.",
+ "type": "boolean"
+ },
+ "findText": {
+ "description": "The find pattern used.",
+ "type": "string"
+ },
+ "replaceAll": {
+ "description": "Whether all matches were replaced.",
+ "type": "boolean"
+ },
+ "replaceText": {
+ "description": "The replacement string used.",
+ "type": "string"
+ },
+ "useRegex": {
+ "description": "Whether findText was treated as regex.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "description": "The rewritten text after replacements.",
+ "type": "string"
+ },
+ "stats": {
+ "description": "Before/after text metrics and match accounting.",
+ "properties": {
+ "matches": {
+ "description": "Match accounting for the operation.",
+ "properties": {
+ "found": {
+ "description": "Total matches found for findText.",
+ "type": "integer"
+ },
+ "remaining": {
+ "description": "Matches left unreplaced (found minus replaced).",
+ "type": "integer"
+ },
+ "replaced": {
+ "description": "Number of matches actually replaced.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "original": {
+ "description": "Statistics for the input text.",
+ "properties": {
+ "characters": {
+ "description": "Unicode code-point count of the original text.",
+ "type": "integer"
+ },
+ "length": {
+ "description": "UTF-8 byte length of the original text.",
+ "type": "integer"
+ },
+ "lines": {
+ "description": "Newline-separated line count of the original text.",
+ "type": "integer"
+ },
+ "text": {
+ "description": "The original text.",
+ "type": "string"
+ },
+ "words": {
+ "description": "Count of alphabetic word runs in the original text.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "description": "Statistics for the rewritten text.",
+ "properties": {
+ "characters": {
+ "description": "Unicode code-point count of the rewritten text.",
+ "type": "integer"
+ },
+ "length": {
+ "description": "UTF-8 byte length of the rewritten text.",
+ "type": "integer"
+ },
+ "lines": {
+ "description": "Newline-separated line count of the rewritten text.",
+ "type": "integer"
+ },
+ "text": {
+ "description": "The rewritten text.",
+ "type": "string"
+ },
+ "words": {
+ "description": "Count of alphabetic word runs in the rewritten text.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "True when the operation succeeded.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}