注意:字符编码为 UTF-8
Function Regex.isMatch(const v:String;ptn:String):Boolean;
Function Regex.Match(const v:String;ptn:String):String;
Function Regex.Matches(const v:String;ptn:String):Array of String;
Function Regex.Replace(const v:String;ptn:String;repls:String):String;
Regex.isMatch('https://www.offeu.com/','\.offeu\.com');
==>
True
Regex.Match('https://www.offeu.com/','(?<=https://).*?(?=/)');
==>
www.offeu.com
Regex.Replace('https://www.offeu.com/','(?<=https://).*?(?=/)','www.zjoss.com');
==>
https://www.zjoss.com/
Regex.Matches('aa11bb22cc33dd44ee55','\d+');
==>
11
22
33
44
55