网口转串口 没反应:使用正则表达式出现问题

来源:百度文库 编辑:高考问答 时间:2024/04/28 22:50:59
我使用以下来检验$name中是不是只包含中文
eregi("^[\u4e00-\u9fa5]*$",$name)

不知道那里出了错误,我的$name变量只要中文也不能通过
以上是PHP语言

eregi("^[\u4e00-\u9fa5]+$",$name)
你换成加号试一下