Exemple #1
0
 private function setWordReg()
 {
     if (null === self::$word_reg) {
         $regs = array('々〇〻\\x{3220}-\\x{3244}\\x{3280}-\\x{32B0}\\x{3400}-\\x{9FFF}\\x{F900}-\\x{FAFF}\\x{20000}-\\x{2FFFF}', 'ぁ-ん~ー', 'ァ-ヴ~ー', 'ヲ-゚', '\\!-\\~');
         $reg = '[' . implode(']+|[', $regs) . ']+';
         $reg .= '|[^' . implode('', $regs) . ']+';
         self::$word_reg = $reg;
     }
 }