File:  [parser3project] / parser3 / tests / 212.html
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Wed Dec 13 23:49:26 2023 UTC (2 years, 8 months ago) by moko
Branches: MAIN
CVS tags: HEAD
pcre2 compatibility (related to feature #1236)

@main[]
^try{
	$r[^regex::create[]]
}{
	$exception.handled(1)
	failed, that's OK
}
<br />


$s[  select]
$r[^regex::create[^^\s*]]
size: ^if($r){!=0}{==0}/^if(^r.size[]){!=0}{==0}<br />
study size: ^if(^r.study_size[]){!=0}{==0}<br />
^s.match[$r;]{!}
<br />

$s[  sElect]
$r[^regex::create[e][g]]
^s.match[$r;]{!}
<br />


$s[  sElect]
$r[^regex::create[e;gi]]
^s.match[$r;]{!}
<br />


$s[12312312]
$r[^regex::create[3;gn]]
^s.match[$r]
<br />

$s[12312312]
$r[^regex::create[\d+?]]
#pcre2 does not support study, this allways 0, pcre here !=0
study size: ^if(^r.study_size[]){!=0}{!=0}<br />
^s.match[$r;]{!}
<br />


$s[12312312]
$r[^regex::create[\d+?;U]]
^s.match[$r][]{!}
<br />

$t[^file:list[./;^regex::create[^^212.html^$]]]
$t.name
<br />

$r[^regex::create[^^[a-z\d_]+^$][gI]]
^$r.pattern: $r.pattern<br />
^$r.options: $r.options<br />
<br />

E-mail: