FluxyAPIFluxyAPI
BlocksOperations & Manipulation

Search & Replace

Find and replace substrings within a text block.

Search & Replace Block

The Search & Replace Block allows you to find occurrences of a specific phrase or regex pattern within a string and replace them with new text.

Configuration

FieldRequiredDescription
Input StringThe base text you want to manipulate.
Search ForThe text or Regex pattern to look for.
Replace WithThe text to insert in place of the matched pattern.
Global ReplaceToggle to replace all occurrences rather than just the first one.

Output Variable

Specify a Variable Name to store the modified string.

Success Payload

Depending on the operation, the output will be a string, number, or boolean.

"The replaced text output."

(Note: It returns a raw primitive value, not an object.)

Errors & Responses

If an error occurs, the variable will be populated with:

{
  "error_key": "SEARCH_INPUT_MISSING",
  "error_message": "Input string is required."
}

Common Error Keys: SEARCH_INPUT_MISSING, SEARCH_VAR_MISSING, SEARCH_RUNTIME_ERROR

On this page