Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[\u4e00-\u9fa5]{0,}$
/
g

Description

字符串仅能是中文。

Submitted by anonymous - 7 years ago