下面这款匹配中文字符串正则表达式是一款利用数组,然后 多次for把全是中文字符串的打印出来。
代码如下 | 复制代码 |
$str_arr = array( $patt_ch = chr(0xa1) . "-" . chr(0xff); foreach ($str_arr as $str) |
/*
字符串'iameverysorry' 是非完全中文
字符串'快乐编程,快乐生活' 是完全中文
字符串'php编程' 是非完全中文
字符串'1997年香港回归' 是非完全中文
字符串'英语学习abc' 是非完全中文
字符串'123456789' 是非完全中文
*/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools