Skip to main content

StringsReplace

Strings Processor – Replace​

Summary (SEO Meta Description):
The Strings Processor’s Replace action in WeHub modifies text by replacing tokens with specified values.
Configure tokens and replacement rules to normalize or transform strings.


Overview​

The Replace action allows you to substitute parts of a string with new values.
It is useful for cleaning up text, formatting messages, or dynamically injecting variables into templates.

This makes it a versatile tool for text normalization and string manipulation in workflows.


⚙️ Configuration Options​

FieldTypeDescription
LabelStringCustom name for the node (e.g., "Replace Patient ID Placeholder").
ConfigStringThe base string or template where replacements will occur.
TokenStringOne or more tokens to be replaced (e.g., {{name}}, {{id}}).

💡 Example Use Cases​

  • Healthcare → Replace {{patientName}} in reminder messages with actual patient names.
  • Finance → Insert transaction details into templated confirmation messages.
  • Ops → Replace placeholders in webhook payloads with dynamic workflow values.

FAQ​

Q: Can I define multiple tokens?
A: Yes, add multiple tokens and their replacement values.

Q: What happens if a token is missing?
A: Missing tokens remain unchanged in the output string.

Q: Does it support nested replacements?
A: No, replacements are single-pass and do not re-parse replaced values.


Keywords: WeHub Strings Processor, Replace string, text substitution, token replacement, string manipulation