uCalc API Version: 2.1.3-preview.2 Released: 6/16/2026

Warning

uCalc API Preview Release Notice:The documentation describes the intended behavior of the API. The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.

FromTo

Method

Product: 

Transformer Library

Class: 

Rule

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