47

JavaScript正则表达式备忘单

 5 years ago
source link: https://juejin.im/post/5c7496fdf265da2dda6957d2
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.
正则表达式或 regex 用于匹配字符串的各个部分。下面是创建的正则表达式的备忘单。 测试正则表达式 使用该.test()方法 let testString = "My test string"; let testRegex = /string/; tes

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK