IsUnicode (Regex property)

From m204wiki
Revision as of 02:15, 14 March 2022 by Alex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Is this a Unicode regular expression (Regex class)


This method indicates whether or not the regular expression used to create the Regex object was specified in Unicode.

Syntax

%boolean = regex:IsUnicode

Syntax terms

%booleanBoolean value that indicates whether (true) or not (false) the regular expression used to constuct the Regex object was Unicode.
regex The Regex object

Examples

The following example:

b %regex is object regex %regex = new("(((Tomorrow|Today) is)|(Yesterday was)) Pie Day", options="i") print %regex:isUnicode %regex = new("((Tomorrow|Today) is)|(Yesterday was) π Day":u, options="i") print %regex:isUnicode end

displays:

False True

See also