RegExGrammar

Enum

RegEx grammar option for defining tokens

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.

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

This page last modified on: 

8/21/2026