[^\u4e00-\u9fa5]+
时间: 2023-08-16 21:16:58 浏览: 130
php代码-正则中文匹配 : \x4e00 ~ \x9fa5
回答: \[^\u4e00-\u9fa5\]+是一个正则表达式,用于匹配文本中除了中文字符以外的所有字符。\[3\]在re.findall中,可以使用这个表达式来找出文本中所有非中文字符。
#### 引用[.reference_title]
- *1* [常用正则表达式](https://blog.csdn.net/weixin_45161039/article/details/107966869)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Python_re_[\u4e00-\u9fa5]+_提取所有中文文本](https://blog.csdn.net/math_gao/article/details/129438961)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文