FromTo

Method

Defines a transformer rule

Product: 

Class: 

Warning

uCalc API Preview Release Notice:The uCalc engine has successfully transitioned to modern cross-platform environments.The next phase envolves some structural changes, performance optimizations, and API refinements.The API is subject to breaking changes prior to the stable release. Please evaluate the preview version thoroughly before production use.

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/21/2026