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.

NewStr

Method

Product: 

Class: 

Returns the new string a match was changed to

Syntax

NewStr(int)

Parameters

Index
int
Index of match

Return

string

String value

Remarks

[revisit this]This returns the new string that a match was changed to. For instance if you do a transformation operation that changes all occurrences of "This" in a string to "That", then NewStr(n) would return "That".

Examples