FromTo

Method

Defines a transformer rule

SDK version: 

5.7.0-preview.3 8/14/2026

Product: 

Class: 

Warning

uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.

Syntax

FromTo(string, string)

Parameters

FromStr
string
Pattern that describes the text to match
ToStr
string
(Default = "")
New text that the match should be changed to

Return

Rule

Object for rule being defined

Remarks

[revisit]Whenever a piece of text matches the pattern described in FromStr, it is replaced with the text found in ToStr.

Examples

This page last modified on: 

8/7/2026