Blogger Information
Blog 143
fans 1
comment 0
visits 439820
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php正则表达式匹配中文字符
弘德誉曦的博客
Original
1858 people have browsed it

php正则表达式匹配中文:
/[\x{4e00}-\x{9fa5}]/u
/[\u4e00-\u9fa5]/ 在js中可用

php正则表达式匹配中文标点符号:
/[\x{3002}\x{ff1b}\x{ff0c}\x{ff1a}\x{201c}\x{201d}\x{ff08}\x{ff09}\x{3001}\x{ff1f}\x{300a}\x{300b}]/u
/[\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b]/ 在js中可用

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post