Jul-04-2017, 08:47 PM
(Jul-04-2017, 05:50 PM)Blue Dog Wrote: For anyone like me whom just picking up on this stuff here what re.compile doesYou can not look in Regular expression documentation to see how
re.compile()
work in BeautifulSoup.You most look in BeautifulSoup doc.
re.compile()
work as helper and in bs4 and is really using the re.search()
.bs4 is doing most of searing in the HTML code,the regex is in bs4 is meant to step in as a helper in some cases.
If you wonder so can you not or shouldn't use regex alone with HTML/XML.
Read the best and most diabolic answer ever.