uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026

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.

FromTo

Method

Product: 

Class: 

Defines a transformer rule

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