KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using BeautifulSoup . I have to find any reference to the <div> tags with id like: post-# . For example: <div id="post-45">...</div> <div id="post-334">...</div> I have tried: html = '<div id="post-45">...</div> <div id="post-334">...</div>' soupHandler = BeautifulSoup(html) print soupHandler.findAll('div', id='post-*') How can I filter this?
Tags (comma-separated)
Save Edits
Cancel