File:  [parser3project] / parser3 / tests / 212.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Thu Sep 17 02:18:46 2009 UTC (16 years, 11 months ago) by misha
Branches: MAIN
CVS tags: release_3_4_0, HEAD
- tests for .pattern and .options were added

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


$s[  select]
$r[^regex::create[^^\s*]]
size: ^eval($r)/^r.size[]<br />
study size: ^r.study_size[]<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+?]]
study size: ^r.study_size[]<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: