Text Find Replace API
https://api.findutils.com/api/tools/text-find-replace/execute Find and replace text and return the new text with the match and replacement counts. Supports case-insensitive search, whole-word matching, JavaScript regular expressions (with $1 capture groups in the replacement), and replace-first or replace-all.
Request body
application/json-
text
string required
The input text.
-
find
string required
The text (or regex pattern when use_regex is true) to find.
-
replace
string optional
The replacement text. Default: empty string (delete matches). Default
"". -
case_sensitive
boolean optional
Match case exactly. Default: false. Default
false. -
whole_word
boolean optional
Match whole words only. Default: false. Default
false. -
use_regex
boolean optional
Treat find as a regular expression. Default: false. Default
false. -
replace_all
boolean optional
Replace every match (true) or only the first (false). Default: true. Default
true.
Example arguments
Verified{
"text": "Hello world",
"find": "world",
"replace": "there"
} More Text tools
- Bookmarks Diff Compare two Netscape bookmarks.html exports (before and after) and list the links that were added, removed, or changed.
- Case Convert Convert a string between camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE, Title Case, Sentence case, lower, UPPER.
- Citation Generator Generate a reference-list citation in APA 7, MLA 9, Chicago, or Harvard style for a book, website, journal, or article.
- Code Diff Checker Returns a line-by-line diff of two code snippets: each line marked added, removed or unchanged with its original and modified line numbers…
- Code Highlight Html Returns syntax-highlighted HTML for a code snippet: HTML-escaped text wrapped in <span style="color: ..."> elements using one of six colour…
- Dedupe Bookmarks Remove duplicate links from a Netscape bookmarks.html export (Chrome, Firefox, Edge, Safari) and return a clean bookmarks.html plus a CSV…