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.
Product:
Class:
Gets or sets whether a rule's variable captures are treated as verbatim blocks, preventing nested pattern matching within them.
By default, uCalc is "nested match aware." When a variable like {content} captures text, it remains aware of all other active patterns. If it encounters text that could match another rule, it respects that boundary, ensuring that matches don't "cross streams" or partially consume other valid patterns.
The Verbatim property allows you to override this behavior. When set to true, it disables nested match awareness for all variables within that rule. The capture becomes a "bulldozer," grabbing text based only on its own termination criteria (e.g., the next anchor or a statement separator) and ignoring all other patterns. This makes the captured content opaque or verbatim.
This property is the programmatic equivalent of using the ~ postfix modifier on a variable in a pattern string (e.g., {content~}).
Verbatim is essential for capturing sections of text that must be preserved exactly as-is, protecting them from other global transformation rules. This is ideal for:
<code>...</code>, ```...```)Verbatim vs. ImmediateTransformThis property is the direct opposite of the ImmediateTransform property (and the % postfix).
Verbatim(true) (~): Prevents nested transformations inside the capture.%): Forces nested transformations inside the capture.For more details on the postfix modifier, see the Verbatim Capture ~ topic.