Options (Regex property)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Regular expression options (Regex class)


This method returns the Options value specified in the Regex constructor call.

Syntax

%string = regex:Options

Syntax terms

%stringThe Options value specified in the Regex constructor call. If no options were specified, a zer-length string is returned.
regex The Regex object.

Usage notes

  • The returned value is always in upper case with no blanks between options, regardless of casing and spacing used in the constructor call.

Examples

The following example:

b %regex is object regex %regex = new("([a-z]{3,}\d{3,})", options="is") print %regex:options end

displays:

IS

See also