Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Java 8

"
[^\d+|#}{,:\"\s\-]
"
mg

Description

判断是否有非法字符(合法字符为数字+-# |以及{"0":0, "1":1}所包含的符号)

  • 能捕获的:包含汉字、英文字符、部分分割符(;、/)、各种括号的电话
Submitted by Jiajian Ye - 3 years ago