--- parser3/tests/212.html 2010/07/25 23:46:06 1.4
+++ 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: ^if($r){!=}{==0}/^if(^r.size[]){!=}{==0}
-study size: ^if(^r.study_size[]){!=}{==0}
+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: ^if(^r.study_size[]){!=}{==0}
+#pcre2 does not support study, this allways 0, pcre here !=0
+study size: ^if(^r.study_size[]){!=0}{!=0}
^s.match[$r;]{!}