<?php $string = '中文'; preg_match_all('/^[\p{L}\p{M}\p{N}_-]+$/u', $string, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.