/^(\[1-9\]{1})(\d{15}|\d{18})$/ 满足这个正则的
时间: 2023-08-23 21:15:28 浏览: 88
μC/OS-II实时内核下的A/D驱动程序设计
问题: /^(\\[1-9\\]{1})(\d{15}|\d{18})$/ 满足这个正则的是什么内容?
回答: 这个正则表达式可以用来校验一个字符串是否满足以下条件:以1-9之间的数字开头,后面跟着15位或18位数字。
#### 引用[.reference_title]
- *1* *3* [正则表达式^(?=.*\\\\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$](https://blog.csdn.net/PersonalM/article/details/103783278)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [数字验证正则表达式/^(\\+)?\\d+\\.?\\d{0,2}$/](https://blog.csdn.net/qq_41451744/article/details/128509044)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文