helper.replace

Allows you to replace some parts of the string with others.

This helper function returns a string in which all occurrences of find in data are replaced with replace.

Because the helper.replace helper returns a string, it can be used in properties that accept string values.

View example
Components used in the example

Component properties

NameTypeDescription
type*"helper.replace"Set component type.
data*anyData to perform the replacement on.
find*stringThe value to search for — the string whose occurrences must be found in data and replaced with the string from replace.
replace*stringThe value to insert in place of the matches of the find value.
Contact support

Last updated: March 29, 2023

Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
FAQTroubleshootingSupportGlossary