7
Python爬虫编程思想(30):用正则表达式匹配多个字符串和任意单个字符
source link: https://blog.csdn.net/nokiaguy/article/details/120410148
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python爬虫编程思想(30):用正则表达式匹配多个字符串和任意单个字符
专栏收录该内容
32 篇文章
2 订阅
¥29.90
¥99.00
目录
1. 匹配多个字符串
在前面的例子中,只是通过search方法搜索一个字符串,那么如果要搜索多个字符串呢?例如,搜索bike、car和truck。最简单的方法是在文本模式字符串中使用择一匹配符号(|),那么什么是择一匹配符
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK