RegexString (Regex property)

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

String regular expression (Regex class)


This method returns the regex string value specified in the Regex constructor call.

Syntax

%string = regex:RegexString

Syntax terms

%stringThe regex string value specified in the Regex constructor call.
regex The Regex object.

Usage notes

  • If the regular expresion specified in the constructor call was Unicode, this method causes request cancellation. To test if a Regex object was created with a Unicode regular expression check the IsUnicode property.

Examples

The following example:

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

displays:

([a-z]{3,}\d{3,})

See also