ur

useful-regex

Common regular expressions

Showing:

Popularity

Downloads/wk

3

GitHub Stars

26

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

useful-regex

常用正则表达式大全

安装

npm install --save useful-regex

使用

const UsefulRegex = require('useful-regex');
const isChinese = UsefulRegex.Chinese.test('中文');

正则列表

描述
Chinese中文字符
DoubleCharacter双字节字符
Phone中国大陆手机号 (移动/联通/电信)
PhoneYidong中国移动
PhoneLiantong中国联通
PhoneDianxin中国电信
Telephone固定电话
Email邮箱
URI统一资源标识符
URL统一资源定位符
QQQQ号码
PostalCode邮政编码
IDCard身份证
Integer整数
PositiveInteger正整数
NegtiveInteger负整数
NonPositiveInteger非正整数
NonNegtiveInteger非负整数

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial