<?php $string = '中文'; preg_match('/^[\pL\pM\pN_-]+$/u', $string, $matches1); preg_match('/^[a-z0-9_-]+$/u', $string, $matches2); var_dump($matches1); var_dump($matches2);
You have javascript disabled. You will not be able to edit any code.