正则匹配英文标点符号
时间: 2023-09-01 16:08:00 浏览: 264
英文标点符号比较多,如逗号、点号、问号、冒号、分号、单引号、感叹号、双引号、连接号、破折号、省略号、小括号、中括号、大括号等。以下是一个正则表达式,可以用来验证英文标点符号:[\p{P}]。这个表达式会匹配出所有的英文标点符号。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [正则表达式标点符号匹配](https://blog.csdn.net/IT_dawdler/article/details/81701253)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [python | 正则表达式匹配字符串中的符号](https://blog.csdn.net/weixin_46304228/article/details/124666753)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文