Regular expressions validate more than two Chinese characters

how to limit regular expressions with more than two Chinese characters

Mar.26,2021

/ ^ [u4e00-u9fa5] {2,} $/

clipboard.png


[u4e00-u9fa5] is to match two or more unicode-encoded characters. If you want to match more than two characters, then you directly / ^ [u4e00-u9fa5] {2,} $/, with ^ means only match the beginning of Chinese characters, not numbers, letters and other

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a95f-407b1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a95f-407b1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?