<?php

if ($argc < 2) {
    die("usage: {$argv[0]} <string> [ <string> ... ]");
}

$regex = '/卡拉\w+可夫/u';
for ($i = 1; $i < $argc; ++$i) {
    $mres = preg_match($regex, $argv[$i], $matches);
    echo "preg_match claims {$mres} match for $regex in {$argv[$i]}\n";
    print_r($matches);
}
