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.

RegExGrammar

Enum

Product: 

Class: 

RegEx grammar option for defining tokens

Name Value Description
Default

Default grammar; ECMAScript is the default

ECMAScript

JavaScript-like regex grammar

basic

Basic POSIX grammar (BRE)

extended

Extended POSIX grammar (ERE)

awk

awk POSIX grammar

grep

grep POSIX grammar

egrep

egrep POSIX grammar

ICU

+++ International Components for Unicode will be the new default

Remarks

When tokens are defined with [topic: uCalc.Tokens.Add] a RegEx grammar from this list can be selected.These are based on the C++ standard library options for regular expressions.

International Components for Unicode will be the new default

Examples