java中划线正则表达式
时间: 2023-08-27 14:20:55 浏览: 101
java正规表达式
在Java中,划线正则表达式可以通过以下方式实现: "\\d+-\\d+"。这个正则表达式的含义是匹配一个数字,后跟一个连字符,再跟着另一个数字。通过这个正则表达式,你可以匹配到类似"123-456"这样的字符串。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [js正则表达式部分汇总](https://blog.csdn.net/wkj001/article/details/100051713)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [用正则表达式寻找中文](https://blog.csdn.net/github_38885296/article/details/120480325)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文