Hello, I'm using BeautifulSoup - python module. I have to find any reference to the div's with id like: 'post-#'. For example:
<div id="post-45">...</div>
<div id="post-334">...</div>
How can I filter this?
html = '<div id="post-45">...</div> <div id="post-334">...</div>'
soupHandler = BeautifulSoup(html)
print soupHandler.findAll('div', id='post-*')
> []