Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Screen scraper to get all 'a title' elements Date: Thu, 26 Nov 2015 10:59:14 +1100 Lines: 8 Message-ID: References: <23ed6f4b-0ef2-4c9e-ade6-e597e7e03ca2@googlegroups.com> <87y4dl3abt.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de PSsi7TUXMHK5N33Hs9CdmAPrLscMqyNlzHpyQfmXVjEw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'expressions': 0.07; "subject:' ": 0.07; 'cc:addr:python- list': 0.09; 'syntax': 0.13; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lexical': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'define': 0.27; 'message-id:@mail.gmail.com': 0.27; 'regular': 0.29; 'certainly': 0.30; 'language.': 0.32; 'subject:all': 0.32; 'handle': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'sure': 0.39; "they're": 0.66; '26,': 0.72; 'subject:get': 0.81; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=7TBZRVtmSUrWZOJNkRsyeyDZ+ez9NOZ1EntcEAk9O80=; b=VVLXPj4RKadpmt1oNng596t86UI3kRki8R1OLInUEPfYUHODuJb2jQNSCWI/JIAGGb /syM8BKw3Xz+f7hK/MytjrF/BylrEqzCldRxnQdcUzIpr3G0ESShyiwi4oapWnNHwZmQ k2LnJMJ0S9FNxTHXa2bvC1L6NNrbGPEg6oglJKg3q1mMN2W0gl0r4pUpr2r2txE2R30X m5/XpAYZhu18rtY6EFxScPB8m6mAX3OIUUDPR7bq/OEFm1decP0MavZUaKWJGrPujqs3 wkeo+yrrRhurtSIlf7RIqrPSxB8uN0aOX25dHnJhD6N0+OJ0SY4/nHLdC0tTHMxHfBVa fOQg== X-Received: by 10.107.3.163 with SMTP id e35mr35064124ioi.157.1448495955064; Wed, 25 Nov 2015 15:59:15 -0800 (PST) In-Reply-To: <87y4dl3abt.fsf@elektro.pacujo.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99511 On Thu, Nov 26, 2015 at 10:53 AM, Marko Rauhamaa wrote: > Regular expressions can handle any regular language just fine. They are > commonly used to define the lexical tokens of a language. Not sure about _defining_ them, but they're certainly often used to _recognize_ them, eg in syntax highlighters. ChrisA