RegexUnicode (Regex property): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
</p> | </p> | ||
==See also== | ==See also== | ||
{{Template:Regex: | {{Template:Regex:RegexUnicode footer}} | ||
[[Category:Regular expression processing]] | [[Category:Regular expression processing]] |
Latest revision as of 18:40, 23 March 2022
Unicode regular expression (Regex class)
This method returns the regex Unicode value specified in the Regex constructor call.
Syntax
%unicode = regex:RegexUnicode
Syntax terms
%unicode | The regex unicode value specified in the Regex constructor call. |
---|---|
regex | The Regex object. |
Usage notes
- If the regular expresion specified in the constructor call was not 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("([α-ω]{3,}\d{3,})":u, options="is") print %regex:regexUnicode end
displays:
([α-ω]{3,}\d{3,})