FocusMatch *

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.

Remarks

[revisit]

This indicates a subsection of the match that will be saved as the match. If you want to match a pattern, but only want a subsection of the match to be counted as a match, then append the * indicator. Only one FocusMatch per pattern is effective. If you have more than one, then the first one encountered is selected. However, if you have optional or alternative patterns within [] and |, then you can technically have more than one, but only the one that is used will count.

With this rule:

Pattern: <>Replacement: ""

xyz <123> aaa would be replaced with:"" xyz "<123>" aaa ""

However, if you don't want the angle brackets to be part of the match you can do:Pattern: Pattern: <{text*}>

And you'll get:"abc" xyz "123" aaa "cde"

Examples

This page last modified on: 

8/21/2026