Link Search Menu Expand Document

RegexPattern.GetPattern Method

Explanation Gets the string of the regular expression from which it was compiled.
Added since Ver.5.0.1
Call format var pattern = rp.GetPattern( )
Return value Regular expression string from the compile source
In Unicode mode, it returns as UString type, otherwise it returns as String type.
Arguments None
Exception None
Example of use
var p = RegexPattern.Compile("Biz/([a-zA-Z]+)", 0, RegexPattern.Unicode);
print(p.GetPattern(), "\n");
    
Related item Pattern property
Compile method