re.findall()参数
时间: 2023-09-08 09:13:20 浏览: 102
Python re 模块findall() 函数返回值展现方式解析
re.findall()函数的参数是正则表达式模式(pattern)和待匹配的字符串(string)。正则表达式模式用来描述要匹配的字符串的规则,而待匹配的字符串是需要进行匹配的目标字符串。re.findall()函数会返回所有与正则表达式模式匹配的字符串,并以数组的形式返回。
#### 引用[.reference_title]
- *1* [Python 之正则表达re.compile()与re.findall()详解](https://blog.csdn.net/yur_ke/article/details/123931594)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [re.findall()用法详解](https://blog.csdn.net/weixin_44799217/article/details/122069533)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Python 正则表达re模块之findall()详解](https://blog.csdn.net/WUNEAL/article/details/119646800)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文