--- parser3/tests/212.html 2009/09/17 02:18:46 1.3
+++ parser3/tests/212.html 2024/12/13 13:54:03 1.7
@@ -1,17 +1,14 @@
@main[]
-^try{
+^try-catch{
$r[^regex::create[]]
-}{
- $exception.handled(1)
- failed, that's OK
}
$s[ select]
$r[^regex::create[^^\s*]]
-size: ^eval($r)/^r.size[]
-study size: ^r.study_size[]
+size: ^if($r){!=0}{==0}/^if(^r.size[]){!=0}{==0}
+study size: ^if(^r.study_size[]){!=0}{==0}
^s.match[$r;]{!}
@@ -34,7 +31,8 @@ $r[^regex::create[3;gn]]
$s[12312312]
$r[^regex::create[\d+?]]
-study size: ^r.study_size[]
+#pcre2 does not support study, this allways 0, pcre here !=0
+study size: ^if(^r.study_size[]){!=0}{!=0}
^s.match[$r;]{!}