我想用正则表达式删除")“和")”之前的所有内容,但保留其余部分。 这就是我到目前为止所做的。这做了我想要的,除了它保留了我不想要的")“。在正则表达式之后,我有: ) this a example where i run the regex. 我想要: this a example where i run the regex.
我试图从p块中提取链接,但我希望忽略括号内的任何内容。text <a href='link_text'>link_text</a>) another link <a href='link_text2'>link_text2</a>
</p> 我想只选择括号后的任何链接content.find_all('p', recursive=False