/multiple-replacements

This endpoint allows you to make multiple text replacements in a given piece of content. You provide the original text and specify each replacement you want to make. The endpoint processes your request and returns the content with the specified substitutions applied.

Endpoint Information :

  • Method: POST
  • Endpoint URL: https://node.nodetrigger.com/api/multiple-replacements
  • Content Type: application/json

Example Requests

To use this endpoint, you should send a POST request to the specified URL with the content and replacement pairs in JSON format.

{
    "content": "Hello, world!",
    "replace1": "world::universe",
    "replace2": "Hello::Hi"
}

The above request will replace “world” with “universe” and “Hello” with “Hi”, resulting in: “Hi, universe!”.

Notes

  • Ensure that the “content” property is included in your request; otherwise, the server will respond with an error.
  • Each replacement pair should be formatted as “oldString::newString”.
  • All occurrences of oldString in the content will be replaced with newString.
  • If multiple replacements are specified, they will be applied in the order they are listed.

“`