Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.065 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'parser': 0.05; 'python': 0.08; 'to:addr:comp.lang.python': 0.09; 'guessing': 0.16; 'newsgroup': 0.16; 'parser,': 0.16; 'res': 0.16; 'soup.': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'cc:addr :python-list': 0.16; 'looked': 0.16; 'wrote:': 0.18; 'seems': 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; '(or': 0.22; 'thanks.': 0.24; 'cc:2**0': 0.26; 'code': 0.26; 'figure': 0.26; "i'm": 0.28; 'alternatives': 0.29; 'cc:addr:python.org': 0.29; 'apologize.': 0.30; 'use?': 0.30; "didn't": 0.30; 'subject:?': 0.31; 'idea': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'all.': 0.34; 'anything': 0.34; 'doc': 0.34; 'subject:What': 0.34; 'trouble': 0.35; 'something': 0.35; 'switch': 0.35; 'google': 0.35; 'post': 0.36; 'question': 0.36; 'are.': 0.37; 'interface.': 0.37; 'page': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'difference': 0.38; "i'll": 0.38; 'received:209.85': 0.38; 'uses': 0.38; 'allows': 0.38; 'could': 0.38; 'some': 0.38; 'should': 0.38; 'easier': 0.38; 'received:209': 0.39; 'called': 0.40; 'john': 0.61; 'more': 0.61; 'double': 0.61; 'march': 0.61; 'offers': 0.62; 'power': 0.63; 'forward': 0.63; 'subject:best': 0.67; 'beautiful': 0.71; 'news,': 0.73; 'with,': 0.73; 'subject:this': 0.74; 'messed': 0.84; 'subject:write': 0.84; 'that)': 0.84 Received-SPF: pass (google.com: domain of johnjsal@gmail.com designates 10.236.184.134 as permitted sender) client-ip=10.236.184.134; Authentication-Results: mr.google.com; spf=pass (google.com: domain of johnjsal@gmail.com designates 10.236.184.134 as permitted sender) smtp.mail=johnjsal@gmail.com Newsgroups: comp.lang.python Date: Tue, 6 Mar 2012 15:33:38 -0800 (PST) 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 References: <12783654.1174.1331073814011.JavaMail.geo-discussion-forums@yner4> <28285433.1413.1331075139309.JavaMail.geo-discussion-forums@ynbq18> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: What's the best way to write this regular expression? From: John Salerno To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331076821 news.xs4all.nl 6914 [2001:888:2000:d::a6]:47727 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21288 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 forwa= rd to learning about something new! :) >=20 > I should ask though...are there alternatives already bundled with Python = that I could use? Now that you mention it, I remember something called HTML= Parser (or something like that) and I have no idea why I never looked into = that before I messed with REs. >=20 > Thanks. ::sigh:: I'm having some trouble with the new Google Groups interface. It s= eems to double post, and in this case didn't post at all. If it did already= , I apologize. I'll try to figure out what's happening, or just switch to a= real newsgroup program. Anyway, my question was about Beautiful Soup. I read on the doc page that B= S uses a parser, which html.parser and lxml are. So I'm guessing the differ= ence between them is that the parser is a little more "low level," whereas = BS offers a higher level approach to using them? Is BS easier to write code= with, while still using the power of lxml?