55
常用正则表达式
source link: https://juejin.im/post/5c52a39fe51d457ecb1178bc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1. 创建 RegExp 对象的语法: 方式1:new RegExp(pattern, attributes); 方式2:/pattern/attributes 参数 说明 pattern 是一个字符串,指定了正则表达式的模式或其他正则表达式。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK