Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 4
    "I'd like to do it with a regex and not beautifulsoup or something similar to that." Enjoy pounding that screw with a hammer. Commented Jan 21, 2010 at 2:57
  • 2
    Seriously: DON'T use regular expressions to parse HTML. Just don't. stackoverflow.com/questions/1732348/… Commented Jan 21, 2010 at 2:59
  • 1
    Why would you like to do it with a regex and not beautifulsoup or something similar to that? Commented Jan 21, 2010 at 3:02
  • @OP, yes you can use regex, if your task is simple. Commented Jan 21, 2010 at 3:12