I am trying to do a grab everything after the '</html>' tag and delete it, but my code doesn’t seem to be doing anything. Does .replace() not support regex?

z.write(article.replace('</html>.+', '</html>'))

4 Answers
4

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *