Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: John Salerno Newsgroups: comp.lang.python Subject: Re: What's the best way to write this regular expression? Date: Tue, 6 Mar 2012 15:25:40 -0800 (PST) Organization: http://groups.google.com Lines: 8 Message-ID: <10944614.4302.1331076340313.JavaMail.geo-discussion-forums@ynne2> References: <12783654.1174.1331073814011.JavaMail.geo-discussion-forums@yner4> <28285433.1413.1331075139309.JavaMail.geo-discussion-forums@ynbq18> NNTP-Posting-Host: 76.30.237.113 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1331076788 11093 127.0.0.1 (6 Mar 2012 23:33:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 6 Mar 2012 23:33:08 +0000 (UTC) In-Reply-To: <28285433.1413.1331075139309.JavaMail.geo-discussion-forums@ynbq18> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.30.237.113; posting-account=Wdz3OgoAAACumWTKfPjpOEJc3twpMp_1 User-Agent: G2/1.0 X-Received-Bytes: 1858 Xref: csiph.com comp.lang.python:21286 On Tuesday, March 6, 2012 5:05:39 PM UTC-6, John Salerno wrote: > > Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) > > I should ask though...are there alternatives already bundled with Python that I could use? Now that you mention it, I remember something called HTMLParser (or something like that) and I have no idea why I never looked into that before I messed with REs. > > Thanks. Also, I just noticed Beautiful Soup, which seems appropriate. I suppose any will do, but knowing the pros and cons would help with a decision.