function MxTextExtract($pagename, $opt)
{
    StopWatch('extract start');
    $opt['fmt'] = 'extract';
    $out = FmtPageList('$MatchList', $pagename, $opt, 0);
    $out = preg_replace("/[\n]+/s", "\n", $out);
    StopWatch('extract end');
    return $out;
}
function MxPageList($pagename, $args)
{
    StopWatch('pagelist start');
    $opt = array('o' => $args, 'fmt' => 'csv');
    $out = FmtPageList('$MatchList', $pagename, $opt, 0);
    $out = preg_replace("/[\n]+/s", "\n", $out);
    StopWatch('pagelist end');
    return $out;
}